Maps are typed generically in TypeScript. For example: const myMap: Map<boolean,string> = new Map([ [false, 'no'], [true, 'yes'], ]);.
確定! 回上一頁