UNPKG

424 BTypeScriptView Raw
1import { GraphQLSchema, GraphQLNamedType } from 'graphql';
2import { SubschemaConfig, Transform } from '@graphql-tools/delegate';
3export default class FilterTypes implements Transform {
4 private readonly filter;
5 constructor(filter: (type: GraphQLNamedType) => boolean);
6 transformSchema(originalWrappingSchema: GraphQLSchema, _subschemaConfig: SubschemaConfig, _transformedSchema?: GraphQLSchema): GraphQLSchema;
7}