|
: Str extends "Infinity" | "-Infinity" | "NaN" |
Since there are no NaN, Infinity or -Infinity types in TypeScript, I think it would be better to remove them.
Additionally, shouldn't you handle exponential notation decimals as shown below? (For example, 1e-900 is a decimal.)
: Str extends `${string}e-${string}`
ts-array-length/src/typeUtils.ts
Line 17 in 9b0b680
Since there are no
NaN,Infinityor-Infinitytypes in TypeScript, I think it would be better to remove them.Additionally, shouldn't you handle exponential notation decimals as shown below? (For example,
1e-900is a decimal.)