In TypeScript 4.1 and onwards, you can re-map keys in mapped types with an as ... You can map over arbitrary unions, not just unions of string | number ...
確定! 回上一頁