UNPKG

692 BTypeScriptView Raw
1import { DocumentNode, GraphQLSchema, IntrospectionQuery } from 'graphql';
2import { SchemaLoader } from './schema-loader';
3import { CLIOptions } from '../../cli-options';
4export declare class SchemaFromExport implements SchemaLoader {
5 canHandle(pointerToSchema: string): boolean;
6 handle(file: string, _cliOptions: CLIOptions): Promise<GraphQLSchema>;
7 isSchemaText(obj: any): obj is string;
8 isSchemaJson(obj: any): obj is {
9 data: IntrospectionQuery;
10 };
11 isSchemaObject(obj: any): obj is GraphQLSchema;
12 isSchemaAst(obj: string | DocumentNode): obj is DocumentNode;
13 isPromise(obj: any): obj is Promise<any>;
14 resolveSchema(schema: any): Promise<any>;
15}