Skip to content

Type Alias: WrapReactiveQueryResultHook()<T, PK, R, M, Output>

ts
type WrapReactiveQueryResultHook<T, PK, R, M, Output> = (
  result: ReactiveQueryResult<T, PK, R, any, M>,
) => Output;

Strongly-typed hook for wrapping ReactiveQueryResult instances.

Type Parameters

Type ParameterDefault typeDescription
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 ReactiveQueryResult<T, PK, R, any, M>ReactiveQueryResult<T, PK, R, any, M>The output (wrapped) type

Parameters

ParameterType
resultReactiveQueryResult<T, PK, R, any, M>

Returns

Output