federation/gateway/node_modules/apollo-datasource/dist/index.d.ts
2020-11-14 16:43:58 +01:00

9 lines
No EOL
323 B
TypeScript

import { KeyValueCache } from 'apollo-server-caching';
export interface DataSourceConfig<TContext> {
context: TContext;
cache: KeyValueCache;
}
export declare abstract class DataSource<TContext = any> {
initialize?(config: DataSourceConfig<TContext>): void | Promise<void>;
}
//# sourceMappingURL=index.d.ts.map