Skip to content

@sourceloop/core / Exports / Adapter

Interface: Adapter<T, R>

Type parameters

Name
T
R

Implemented by

Table of contents

Methods

Methods

adaptFromModel

adaptFromModel(data, ...rest): R

Parameters

Name Type
data T
...rest any[]

Returns

R

Defined in

packages/core/src/adapters/i-adapter.ts:9


adaptToModel

adaptToModel(resp, ...rest): T

Parameters

Name Type
resp R
...rest any[]

Returns

T

Defined in

packages/core/src/adapters/i-adapter.ts:8