TypeScript 2.9增加了在索引类型和映射类型上支持用 number 和 symbol 命名属性。 ... key: K): T[K] { return obj[key]; } let x1 = getValue(enumToStringMap, Enum.
確定! 回上一頁