import { GraphQLSchema, DocumentNode } from 'graphql'; import { Types } from 'graphql-codegen-core'; export interface SchemaLoader { canHandle(pointerToSchema: string): Promise | boolean; handle(pointerToSchema: string, config: Types.Config, schemaOptions: T): Promise | DocumentNode | GraphQLSchema; }