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

x/rimbu/typical/mod.ts>StrNum.FromNumber

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias StrNum.FromNumber
import { type StrNum } from "https://deno.land/x/rimbu@1.0.2/typical/mod.ts";
const { FromNumber } = StrNum;

Converts a natural number to a string-number, otherwise never.

Examples

Example 1

NumberToStringNum<123> => '123'
NumberToStringNum<-13> => never

Type Parameters

N extends number
definition: NatNum<`${N}`>