UNPKG

359 BTypeScriptView Raw
1import { GraphQLSchema, DocumentNode } from 'graphql';
2import { Types } from 'graphql-codegen-core';
3export interface SchemaLoader<T = any> {
4 canHandle(pointerToSchema: string): Promise<boolean> | boolean;
5 handle(pointerToSchema: string, config: Types.Config, schemaOptions: T): Promise<DocumentNode | GraphQLSchema> | DocumentNode | GraphQLSchema;
6}