Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/typical/strnum.ts>FromNumber

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

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}`>