import type { SchemaTypes } from '@pothos/core'; export type DirectiveLocation = | 'ARGUMENT_DEFINITION' | 'ENUM_VALUE' | 'ENUM' | 'FIELD_DEFINITION' | 'INPUT_FIELD_DEFINITION' | 'INPUT_OBJECT' | 'INTERFACE' | 'OBJECT' | 'SCALAR' | 'SCHEMA' | 'UNION'; export type DirectiveList = { name: string; args?: object }[]; export type DirectivesFor = { [K in keyof Types['Directives']]: Location extends Types['Directives'][K]['locations'] ? K : never; }[keyof Types['Directives']]; export type Directives = | { [K in keyof Types['Directives']]: Location extends Types['Directives'][K]['locations'] ? { name: K; args: Types['Directives'][K]['args']; } : never; }[keyof Types['Directives']][] | { [K in DirectivesFor]?: Types['Directives'][K]['args'] & {}; };