UNPKG

492 BTypeScriptView Raw
1import DataLoader from 'dataloader';
2import { CreateBatchDelegateFnOptions, BatchDelegateOptionsFn, BatchDelegateFn } from './types';
3export declare function createBatchDelegateFn<K = any, V = any, C = K>(optionsOrArgsFromKeys: CreateBatchDelegateFnOptions | ((keys: ReadonlyArray<K>) => Record<string, any>), lazyOptionsFn?: BatchDelegateOptionsFn, dataLoaderOptions?: DataLoader.Options<K, V, C>, valuesFromResults?: (results: any, keys: ReadonlyArray<K>) => Array<V>): BatchDelegateFn<K>;