Amazing? Stupid? ๐ค ๐คช
Can't believe I'm about to share #typescript content, but version 5.0 adds support for @satisfies and @overload to #JSDoc and that's p cool ๐
#Overload let's you type functions that can take different arguments which seems bad but w/e https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#overload-support-in-jsdoc
#Satisfies is some TS bs bullshit I haven't figured out yet but which is probably useful sometimes https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#satisfies-support-in-jsdoc
I just like to see parity with JSDocs and TS Syntax!
#satisfies #overload #jsdoc #typescript
Finalised my DEV article on exhaustiveness checking in #Typescript with #satisfies https://dev.to/cefn/typescript-satisfies-never-exhaustiveness-checking-in-typescript-49-58fh - keen for feedback.
#typescript 4.9 is only a few days old and I already can't image it without the #satisfies operator anymore lol. If you need help to understand it, watch this https://youtu.be/Danki1DyiuI?t=247