TypeScript Record 用法
Jul 8, 2022
1 min read
type Scopes = Record<string, Registry>;
等价于创建了一个 键类型为string ,值类型为Reistry的类型
等价{[k:string]:Registry}