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

x/typebox/src/typebox.ts>TypeGuard.TLiteralNumber

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
function TypeGuard.TLiteralNumber
import { TypeGuard } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";
const { TLiteralNumber } = TypeGuard;

Returns true if the given value is TLiteral

Parameters

schema: unknown

Returns

schema is TLiteral<number>