Type Alias: WrapReactiveQueryCollectionHook()<T, PK, R, M, Output>
ts
type WrapReactiveQueryCollectionHook<T, PK, R, M, Output> = (
collection: ReactiveQueryCollection<T, PK, R, any, M>,
) => Output;Strongly-typed hook for wrapping ReactiveQueryCollection instances.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T extends PlainObject | - | Model data type |
PK extends StringKeyOf<T> | - | Primary key type |
R extends Record<string, RelationshipConfiguration> | - | Relationships config |
M extends ReactiveModel<T, PK, R> | - | Model instance type |
Output extends ReactiveQueryCollection<T, PK, R, any, M> | ReactiveQueryCollection<T, PK, R, any, M> | The output (wrapped) type |
Parameters
| Parameter | Type |
|---|---|
collection | ReactiveQueryCollection<T, PK, R, any, M> |
Returns
Output