Type alias: ItemAdapter<T, M>
Ƭ ItemAdapter<T
, M
>: (data
: T
) => { id?
: string
| number
; meta?
: M
; text?
: string
}
Type parameters
Name | Type |
---|---|
T | T |
M | extends ItemMeta |
Type declaration
▸ (data
): Object
Parameters
Name | Type |
---|---|
data | T |
Returns
Object
Name | Type |
---|---|
id? | string | number |
meta? | M |
text? | string |
Defined in
onekijs/packages/onekijs-framework/src/collection/typings.ts:154