UNPKG

587 BTypeScriptView Raw
1import { DocumentLoader } from './document-loader';
2import { DocumentNode } from 'graphql';
3import { Types, DocumentFile } from 'graphql-codegen-core';
4export declare const graphQLExtensions: string[];
5export declare class DocumentsFromGlob implements DocumentLoader {
6 canHandle(doc: string): Promise<boolean> | boolean;
7 documentsFromGlobs(documentGlob: string): Promise<string[]>;
8 loadFileContent(filePath: string): DocumentNode | null;
9 loadDocumentsSources(filePaths: string[]): DocumentFile[];
10 handle(doc: string, config: Types.Config): Promise<DocumentFile[]>;
11}