UNPKG

241 BTypeScriptView Raw
1import { Types, DocumentFile } from 'graphql-codegen-core';
2export interface DocumentLoader {
3 canHandle(doc: string): Promise<boolean> | boolean;
4 handle(doc: string, config: Types.Config): Promise<DocumentFile[]> | DocumentFile[];
5}