@pothos/plugin-scope-auth
Version:
A Pothos plugin for adding scope based authorization checks to your GraphQL Schema
6 lines (5 loc) • 555 B
TypeScript
import { type MaybePromise, type SchemaTypes } from '@pothos/core';
import type { GraphQLIsTypeOfFn, GraphQLResolveInfo } from 'graphql';
import type { PothosScopeAuthPlugin, ResolveStep } from './index.js';
export declare function isTypeOfHelper<Types extends SchemaTypes>(steps: ResolveStep<Types>[], plugin: PothosScopeAuthPlugin<Types>, isTypeOf: GraphQLIsTypeOfFn<unknown, Types["Context"]> | undefined): (parent: unknown, context: Types["Context"], info: GraphQLResolveInfo) => MaybePromise<boolean>;
//# sourceMappingURL=is-type-of-helper.d.ts.map