UNPKG

@cran/gql.core

Version:

Cran/GraphQL Core Utilities

14 lines (13 loc) 402 B
import type { Plugin } from "./Plugin"; export declare namespace withRbac { interface Options { name?: string; enumName?: string; publicName?: string; denyPublic?: boolean; defaultGrants?: Record<string, true>; roles: Array<string>; rolesParameter?: string; } } export declare function withRbac(options: withRbac.Options): Plugin<any>[];