Module

x/pothos/packages/core/mod.ts>ExposeNullableOption

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

Type Parameters

Types extends SchemaTypes
Type extends TypeParam<Types>
ParentShape
Name extends keyof ParentShape
definition: FieldNullability<Type> & (Type extends [unknown] ? ParentShape[Name] extends readonly (infer T)[] | null | undefined ? [T] extends [NonNullable<T>] ? ParentShape[Name] extends NonNullable<ParentShape[Name]> ? boolean | { items: boolean; list: boolean; } : true | { items: boolean; list: true; } : ParentShape[Name] extends NonNullable<ParentShape[Name]> ? { items: true; list: boolean; } : { items: true; list: true; } : never : ParentShape[Name] extends NonNullable<ParentShape[Name]> ? boolean : true)