UNPKG

530 BTypeScriptView Raw
1import { GraphQLSchema, IntrospectionOptions } from 'graphql';
2import { AsyncExecutor, SyncExecutor } from '@graphql-tools/delegate';
3export declare function introspectSchema<TExecutor extends AsyncExecutor | SyncExecutor>(executor: TExecutor, context?: Record<string, any>, options?: IntrospectionOptions): TExecutor extends AsyncExecutor ? Promise<GraphQLSchema> : GraphQLSchema;
4export declare function introspectSchemaSync(executor: SyncExecutor, context?: Record<string, any>, options?: IntrospectionOptions): GraphQLSchema;