将字符串字面量转换为数字,行为类似于 Number.parseInt 。
Number.parseInt
例如:
type A = ToNumber<'0'> // expected to be 0
TypeScript