Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Latest
type alias RecursivelyNormalizeNullableFields
import { type RecursivelyNormalizeNullableFields } from "https://deno.land/x/pothos@release-1730496474/packages/core/mod.ts";
definition: T extends null | undefined ? null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends (...args: any[]) => unknown ? T : keyof T extends string ? IsSimpleRecord<T> extends true ? Normalize<[K in OptionalKeys<T & object>]?: K extends string ? RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined : T[K] & [K in RequiredKeys<T & object>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>> : T : T