TypeScript怎么表示字符串数字类型? 骂谁是程序员呢 2022-11-10 377 阅读1分钟 // 前置条件 TS版本大于4.1.0 type _number = number | `${number}`; 官材:www.typescriptlang.org/docs/handbo…