UNPKG

@pothos/plugin-scope-auth

Version:

A Pothos plugin for adding scope based authorization checks to your GraphQL Schema

7 lines (6 loc) 550 B
import { type PothosOutputFieldConfig, type SchemaTypes } from '@pothos/core'; import type { GraphQLResolveInfo } from 'graphql'; import type { PothosScopeAuthPlugin } from './index.js'; import { type ResolveStep } from './types.js'; export declare function resolveHelper<Types extends SchemaTypes>(steps: ResolveStep<Types>[], plugin: PothosScopeAuthPlugin<Types>, fieldConfig: PothosOutputFieldConfig<Types>): (parent: unknown, args: {}, context: Types["Context"], info: GraphQLResolveInfo) => unknown; //# sourceMappingURL=resolve-helper.d.ts.map