UNPKG

dla

Version:

node.js data loader with caching and support of lists

15 lines (14 loc) 414 B
import { Cache } from './cache'; import * as Types from './shared-types'; export declare class MultiQuery<V> { touched: boolean; sent: boolean; private cache; private loadFew; private promiseCache; private resolvers; constructor(loadFew: Types.MultiLoader<V>, cache?: Cache<Types.ICacheElement<V>>); getOne(id: string): Promise<V>; has(id: string): boolean; private load; }