I wrote an article explaining what are decorators and the article was written in context of version 4.x of TypeScript. In this article, we are going to talk about how decorators have changed in version 5.0 of TypeScript.
23 posts tagged with "javascript"
View All TagsAdvantages of using TypeScript with React
In this article, we will delve into the advantages of using TypeScript alongside React, discussing how this powerful combination can enhance your development experience.
How to use TypeScript with React
It's possible to to use React with TypeScript and in my personal opinion its a must to use TypeScript with React. Using TypeScript with React gives you the advantage of strict type checking, better code readability, autocompletion, intellisense, easier refactoring and makes your code base scalable.
TypeScript vs JavaScript? Are they same?
An interface can be thought of as a blueprint for an object or a class, specifying the properties and methods that must be implemented.
What are Interfaces In TypeScript
An interface can be thought of as a blueprint for an object or a class, specifying the properties and methods that must be implemented.
What are Discriminated Unions In TypeScript? Real Life Implementation Examples
Type predicates are used to determine if a given value belongs to a certain type or not, providing a hint to the TypeScript compiler about the type information.
What are Type Predicates In TypeScript? Real Life Implementation Examples
Type predicates are used to determine if a given value belongs to a certain type or not, providing a hint to the TypeScript compiler about the type information.
Thruthiness Narrowing in TypeScript
Truthiness Narrowing is particularly useful when dealing with optional types, union types, or null/undefined values.
What is Control Flow Analysis in Typescript
TypeScript uses Control Flow Analysis to provide better type inference, type narrowing, and error detection.
Understanding `instanceof` Type Guard in TypeScript
In TypeScript, instanceof
is a type guard that allows you to narrow down the
type of an object within a conditional block.