UNPKG

315 BTypeScriptView Raw
1import { GraphQLSchema } 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<GraphQLSchema> | GraphQLSchema;
6}