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

x/typebox_deno/src/typebox.ts>TypeGuard.TLiteralBoolean

JSON Schema Type Builder with Static Type Resolution for TypeScript
Latest
function TypeGuard.TLiteralBoolean
import { TypeGuard } from "https://deno.land/x/typebox_deno@0.31.22/src/typebox.ts";
const { TLiteralBoolean } = TypeGuard;

Returns true if the given value is TLiteral

Parameters

schema: unknown

Returns

schema is TLiteral<boolean>