UNPKG

ts-type

Version:

add some typescript type and re-export some build-in typescript type

6 lines (5 loc) 347 B
import { ITSToStringLiteral } from './string'; export type ITSNumberString<N extends number | bigint = number> = ITSToStringLiteral<N>; export type ITSUnpackNumberString<S extends string, R = never> = S extends ITSNumberString<infer N> ? N : R; export type ITSNumberValue = number | string; export type ITSNumberValue2 = number | ITSNumberString;