#
Interface: Prefetch<GeneratedSchema>#
Type parametersName | Type |
---|---|
GeneratedSchema | object |
GeneratedSchema.query | object |
#
Callableâ–¸ Prefetch<TData>(fn
: (query
: GeneratedSchema[query]) => TData): TData | Promise<TData> & { schedulerPromise
: Promise<SchedulerPromiseValue> }
#
Type parameters:Name |
---|
TData |
#
Parameters:Name | Type |
---|---|
fn | (query : GeneratedSchema[query]) => TData |
Returns: TData | Promise<TData> & { schedulerPromise
: Promise<SchedulerPromiseValue> }
Defined in: packages/gqless/src/Helpers/prefetch.ts:8