UNPKG

315 BTypeScriptView Raw
1export declare type FilterFn = (rootValue?: any, args?: any, context?: any, info?: any) => boolean;
2export declare type ResolverFn = (rootValue?: any, args?: any, context?: any, info?: any) => AsyncIterator<any>;
3export declare const withFilter: (asyncIterator: AsyncIterator<any>, filterFn: FilterFn) => Function;