import { type StrNum } from "https://deno.land/x/rimbu@0.13.1/typical/mod.ts";
const { NatNum } = StrNum;
Type that will return the incoming type if the value is a valid natural number,
or never
otherwise.
Examples
Example 1
Example 1
NatNum<'321'> => '321'
NatNum<'0'> => '0'