摘要: TypeScript 5.0 now allows JSDoc to declare overloads with a new @overload tag. Each JSDoc comment with an @overload tag is treated as a distinct overl 阅读全文
posted @ 2023-01-30 15:50 Zhentiw 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#exhaustive-switch-case-completions In the example code: type HasNames = { na 阅读全文
posted @ 2023-01-30 15:47 Zhentiw 阅读(48) 评论(0) 推荐(0) 编辑