Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/arktype/utils/numericLiterals.ts>writeMalformedNumericLiteralMessage

TypeScript's 1:1 validator, optimized from editor to runtime
Latest
type alias writeMalformedNumericLiteralMessage
import { type writeMalformedNumericLiteralMessage } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/numericLiterals.ts";

Type Parameters

def extends string
kind extends NumericLiteralKind
definition: `'${def}' was parsed as ${numericLiteralDescriptions[kind]} but could not be narrowed to a literal value. Avoid unnecessary leading or trailing zeros and other abnormal notation`
variable writeMalformedNumericLiteralMessage
import { writeMalformedNumericLiteralMessage } from "https://deno.land/x/arktype@v1.0.10-alpha/utils/numericLiterals.ts";

type

<def extends string, kind extends NumericLiteralKind>(def: def, kind: kind) => writeMalformedNumericLiteralMessage<def, kind>