UNPKG

@pothos/plugin-directives

Version:

Directive plugin for Pothos, enables using graphql-tools based directives with Pothos

17 lines 1.21 kB
import './global-types'; import { BasePlugin, type PothosEnumValueConfig, type PothosInputFieldConfig, type PothosOutputFieldConfig, type PothosTypeConfig, type SchemaTypes } from '@pothos/core'; import type { GraphQLSchema } from 'graphql'; import type { DirectiveList } from './types'; export * from './types'; declare const pluginName = "directives"; export default pluginName; export declare class PothosDirectivesPlugin<Types extends SchemaTypes> extends BasePlugin<Types> { onOutputFieldConfig(fieldConfig: PothosOutputFieldConfig<Types>): PothosOutputFieldConfig<Types>; onInputFieldConfig(fieldConfig: PothosInputFieldConfig<Types>): PothosInputFieldConfig<Types>; onEnumValueConfig(valueConfig: PothosEnumValueConfig<Types>): PothosEnumValueConfig<Types>; onTypeConfig(typeConfig: PothosTypeConfig): PothosTypeConfig; afterBuild(schema: GraphQLSchema): GraphQLSchema; mergeDirectives(left: DirectiveList | Record<string, object>, right: DirectiveList | Record<string, object>): DirectiveList | Record<string, object>; normalizeDirectives(directives: DirectiveList | Record<string, object>): DirectiveList | Record<string, object>; } //# sourceMappingURL=index.d.ts.map