import { GraphQLSchema } 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 | GraphQLSchema; }