前端项目实战49-map类中的<String,String>泛型的意思

表示插入的Map 的key与value的类型

// compound keys capability

type PrimaryKey = Array<string>;

primaryKeys: Map<string, PrimaryKey> 

 primaryKeys: Map<string, PrimaryKey> = defaultPrimaryKeys) => ({ 

posted @ 2022-10-14 08:19  前端导师歌谣  阅读(16)  评论(0)    收藏  举报