import { type StrNum } from "https://deno.land/x/rimbu@1.1.0/typical/index.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'