TypeScript 4.1 RC is here! As always, we'd appreciate if you could give it a try and let us know if you run into any issues! devblogs.microsoft.com/typescript/ann…
devblogs.microsoft.com
Announcing TypeScript 4.1 RC - TypeScript
Today we are making the Release Candidate (RC) of TypeScript 4.1 available. To get started using the RC, you can get it through NuGet, or use npm with the following command: npm install typescript@rc...
With TS 4.1 does [1, 2, undefined, 4].filter(element => element !== undefined) infer the correct return type of ‘number’ now? Instead of the incorrect return type ‘number | undefined?’ That would be a real productivity boost for me!
What's the difference between these two ways of transforming a string type that are shown in the blog post? The former doesn't actually work in the playground
Template literal types are an amazing feature and I am excited that you pursued them given that many established JS APIs will now be able to be typed. On the other hand God help the souls who have to navigate through some of the horrifying types some people will create.
Great changes overall, I'm only concerned about "Conditional Spreads Create Optional Properties". Arguing that "some people have hundreds of optional spreads in a single object" doesn't seem valid to me, because if you are in that situation, you are probably doing something wrong
Great job @typescript team!!! I'd love some reviews and support on this PR github.com/i18next/react-…, which makes i18n fully type-safe using the new features from Typescript 4.1!
@drosenwasser I think there is a mistake in the first person.on("frstNameChanged") example where the second example is mistakenly marked as error.
Template Literal Types sound weird TBH, it feels like runtime stuff
United States Trends
- 1. #BUNCHITA 1,297 posts
- 2. #SmackDown 43.5K posts
- 3. Tulane 4,039 posts
- 4. Aaron Gordon 2,929 posts
- 5. Supreme Court 178K posts
- 6. Giulia 14.2K posts
- 7. Russ 13K posts
- 8. Connor Bedard 2,517 posts
- 9. #TheLastDriveIn 3,354 posts
- 10. Podz 2,735 posts
- 11. #OPLive 2,231 posts
- 12. Caleb Wilson 5,525 posts
- 13. #TheFutureIsTeal N/A
- 14. Northwestern 4,908 posts
- 15. Memphis 15.8K posts
- 16. Frankenstein 73.4K posts
- 17. Scott Frost N/A
- 18. Rockets 20K posts
- 19. Justice Jackson 5,055 posts
- 20. Isaiah Hartenstein 1,014 posts
Something went wrong.
Something went wrong.