An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 10, 2022 05:15 pm GMT
Original Link: https://dev.to/nickytonline/what-are-some-things-that-folks-might-not-be-aware-of-about-typescript-3442
What are some things that folks might not be aware of about TypeScript?
Ive been following Matt Pocock for a while and he started TypeScript tip tweets on Twitter a while ago. Ive found them super informative and its what prompted this post. Heres the latest one.
TypeScript Tip #18
You can do some really, really neat stuff with assertion functions inside classes.
Here, we assert that the user is logged in and get proper inference on the user's logged in user id.11:15 AM - 08 Apr 2022
So wonderful devs, what are some things that folks might not be aware of about TypeScript? If you can link to a TypeScript Playground example or an example in your favourite online editor, even better!
Original Link: https://dev.to/nickytonline/what-are-some-things-that-folks-might-not-be-aware-of-about-typescript-3442
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To