UNPKG

graphql-shield

Version:

GraphQL Server permissions as another layer of abstraction!

12 lines (11 loc) 418 B
import { IMiddlewareGeneratorConstructor } from 'graphql-middleware'; import { IRules, IOptions } from './types.js'; /** * * @param ruleTree * @param options * * Generates middleware from given rules. * */ export declare function generateMiddlewareGeneratorFromRuleTree<TSource = any, TContext = any, TArgs = any>(ruleTree: IRules, options: IOptions): IMiddlewareGeneratorConstructor<TSource, TContext, TArgs>;