Function: useCollectionService
▸ Const useCollectionService<T, M, S, C>(dataSource, ctor, initialState): [S, C]
Type parameters
| Name | Type |
|---|---|
T | T |
M | extends ItemMetaItemMeta |
S | extends CollectionState<T, M, S>CollectionState<T, M> |
C | extends CollectionService<T, M, S, C>CollectionService<T, M, S> |
Parameters
| Name | Type |
|---|---|
dataSource | string | Collection<T, M> | T[] |
ctor | Class<C> |
initialState | S |
Returns
[S, C]
Defined in
onekijs/packages/onekijs-framework/src/collection/useCollectionService.ts:10