UNPKG

327 BTypeScriptView Raw
1import { DocumentLoader } from './document-loader';
2import { Types, DocumentFile } from 'graphql-codegen-core';
3export declare class DocumentFromString implements DocumentLoader {
4 canHandle(doc: string): Promise<boolean> | boolean;
5 handle(doc: string, config: Types.Config): Promise<DocumentFile[]> | DocumentFile[];
6}