Type alias: Collection<T, M>
Ƭ Collection<T
, M
>: Omit
<CollectionBroker
<T
, M
>, "addSubscriber"
| "removeSubscriber"
> & { data?
: (T
| undefined
)[] ; hasMore
: boolean
; items?
: (Item
<T
, M
> | undefined
)[] ; status
: CollectionStatus
; total?
: number
; asService
: () => Collection
<T
, M
> ; getAdapter
: () => undefined
| CollectionItemAdapter
<T
, M
> ; getFields
: () => undefined
| string
[] ; getFilter
: () => undefined
| QueryFilter
; getFilterById
: (id
: QueryFilterId
) => undefined
| QueryFilterOrCriteria
; getItem
: (id
: string
| number
) => undefined
| Item
<T
, M
> ; getLimit
: () => undefined
| number
; getMeta
: (id
: string
| number
) => undefined
| M
; getOffset
: () => undefined
| number
; getParam
: (key
: string
) => any
; getParams
: () => undefined
| AnonymousObject
<any
> ; getSearch
: () => undefined
| Primitive
; getSort
: () => undefined
| QuerySortDir
; getSortBy
: () => undefined
| QuerySortBy
[] ; getSortByField
: (field
: string
) => undefined
| QuerySortByField
; getSortById
: (id
: string
) => undefined
| QuerySortBy
; load
: (limit?
: number
, offset?
: number
) => void
; query
: (query
: Query
) => void
; refresh
: (query?
: Query
) => void
; reset
: () => void
; setMeta
: (item
: Item
<T
, M
>, key
: keyof M
, value
: any
) => void
}
Type parameters
Name | Type |
---|---|
T | T |
M | extends ItemMeta |
Defined in
onekijs/packages/onekijs-framework/src/collection/typings.ts:8