Skip to main content

Type alias: ItemAdapter<T, M>

Ƭ ItemAdapter<T, M>: (data: T) => { id?: string | number ; meta?: M ; text?: string }

Type parameters

NameType
TT
Mextends ItemMeta

Type declaration

▸ (data): Object

Parameters
NameType
dataT
Returns

Object

NameType
id?string | number
meta?M
text?string

Defined in

onekijs/packages/onekijs-framework/src/collection/typings.ts:154