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

x/typebox_deno/src/typebox.ts>OptionalUnwrapType

JSON Schema Type Builder with Static Type Resolution for TypeScript
Latest
type alias OptionalUnwrapType
import { type OptionalUnwrapType } from "https://deno.land/x/typebox_deno@0.31.22/src/typebox.ts";

Type Parameters

T extends TSchema
definition: T extends TReadonly<infer S> ? TReadonly<OptionalUnwrapType<S>> : T extends TOptional<infer S> ? OptionalUnwrapType<S> : T