9 lines
323 B
TypeScript
9 lines
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
|