Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Latest commit

 

History

History
131 lines (79 loc) · 2.83 KB

imapper.md

File metadata and controls

131 lines (79 loc) · 2.83 KB

redux-data-service > IMapper

Interface: IMapper

Type parameters

R

Hierarchy

IMapper

Implemented by

Index

Properties


Properties

normalize

● normalize: function

Defined in Mapper/IMapper.ts:9

Type declaration

▸(data: Partial<R>): Promise<IModel<T>>

Parameters:

Name Type
data Partial<R>

Returns: Promise<IModel<T>>


normalizeQueryResponse

● normalizeQueryResponse: function

Defined in Mapper/IMapper.ts:10

Type declaration

▸(data: IRawQueryResponse<R>): Promise< IQueryResponse & object>

Parameters:

Name Type
data IRawQueryResponse<R>

Returns: Promise< IQueryResponse & object>


transform

● transform: function

Defined in Mapper/IMapper.ts:6

Type declaration

▸(model: * IModel<T> | Partial<T>*): Promise<Partial<R>>

Parameters:

Name Type
model IModel<T> | Partial<T>

Returns: Promise<Partial<R>>


transformList

● transformList: function

Defined in Mapper/IMapper.ts:8

Type declaration

▸(models: IModel<T>[]): Promise<R[]>

Parameters:

Name Type
models IModel<T>[]

Returns: Promise<R[]>


transformPatch

● transformPatch: function

Defined in Mapper/IMapper.ts:7

Type declaration

▸(model: * IModel<T> | Partial<T>*): any

Parameters:

Name Type
model IModel<T> | Partial<T>

Returns: any