UNPKG

graphql-shield

Version:

GraphQL Server permissions as another layer of abstraction!

12 lines (11 loc) 339 B
import { GraphQLSchema } from 'graphql'; import { IRules, IOptions, IMiddlewareTypeMap } from './types.cjs'; /** * * @param rules * @param wrapper * * Converts rule tree to middleware. * */ export declare function generateMiddlewareFromSchemaAndRuleTree(schema: GraphQLSchema, rules: IRules, options: IOptions): IMiddlewareTypeMap;