UNPKG

graphql-shield

Version:

GraphQL Server permissions as another layer of abstraction!

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