UNPKG

382 BTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { PruneSchemaOptions } from './types.js';
3/**
4 * Prunes the provided schema, removing unused and empty types
5 * @param schema The schema to prune
6 * @param options Additional options for removing unused types from the schema
7 */
8export declare function pruneSchema(schema: GraphQLSchema, options?: PruneSchemaOptions): GraphQLSchema;