UNPKG

334 BTypeScriptView Raw
1import type { KeyValueCache } from '@apollo/utils.keyvaluecache';
2export interface DataSourceConfig<TContext> {
3 context: TContext;
4 cache: KeyValueCache;
5}
6export declare abstract class DataSource<TContext = any> {
7 initialize?(config: DataSourceConfig<TContext>): void | Promise<void>;
8}
9//# sourceMappingURL=index.d.ts.map
\No newline at end of file