Module

x/pothos/packages/plugin-directives/index.ts>Directives

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias Directives
import { type Directives } from "https://dotland.deno.dev/x/pothos@release-1684230554/packages/plugin-directives/index.ts";

Type Parameters

Types extends SchemaTypes
Location extends DirectiveLocation
definition: [K in keyof Types["Directives"]]: Types["Directives"][K]["locations"] extends Location ? { name: K; args: Types["Directives"][K]["args"]; } : never[keyof Types["Directives"]][] | [K in DirectivesFor<Types, Location>]?: Types["Directives"][K]["args"] & { }