Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/template/minimal/deps.ts>Optionalize

Discord API library for Node and Deno
Latest
type alias Optionalize
Re-export
import { type Optionalize } from "https://deno.land/x/discordeno_patched@18.0.3/template/minimal/deps.ts";

Makes all of properties in T optional when they're null | undefined it is recursive

definition: T extends object ? T extends Array<unknown> ? number extends T["length"] ? T[number] extends object ? Array<OptionalizeAux<T[number]>> : T : Partial<T> : OptionalizeAux<T> : T