UNPKG

594 BTypeScriptView Raw
1import { GraphQLSchema, buildClientSchema, IntrospectionOptions, ParseOptions } from 'graphql';
2import { AsyncExecutor, SyncExecutor } from '@graphql-tools/utils';
3export declare function introspectSchema(executor: SyncExecutor, context?: Record<string, any>, options?: Partial<IntrospectionOptions> & Parameters<typeof buildClientSchema>[1] & ParseOptions): GraphQLSchema;
4export declare function introspectSchema(executor: AsyncExecutor, context?: Record<string, any>, options?: Partial<IntrospectionOptions> & Parameters<typeof buildClientSchema>[1] & ParseOptions): Promise<GraphQLSchema>;