TypeScript怎么表示字符串数字类型?

377 阅读1分钟
// 前置条件 TS版本大于4.1.0
type _number = number | `${number}`;

官材:www.typescriptlang.org/docs/handbo…