TypeScript - Tips & Tricks
Ordered from Part 1 to Part 21 so you can follow the complete learning path chronologically.
Articles in TypeScript - Tips & Tricks
-
Typescript - Tips & Tricks - typeof
Today I want to start a series of tips and tricks about Typescript. I will try to publish two/three...
#typescript · #webdev
-
Typescript - Tips & Tricks - Literal Types
Welcome back! Today I show you the Literal Types. This feature permits you to create a set of...
#typescript · #webdev
-
Typescript - Tips & Tricks - keyof
Welcome back! Today I'll talk about the keyof operator. This operator helps us to extract the...
#typescript · #webdev
-
Typescript - Tips & Tricks - Union and Intersection
Hi and welcome back! Today I talk about Union and Intersection. In some cases, we have to combine...
#typescript · #webdev
-
Typescript - Tips & Tricks - Overloaded Functions
Welcome back, guys! The topic of today is Overloaded Functions. All self-respecting programming...
#typescript · #webdev
-
Typescript - Tips & Tricks - this parameter
Hello everybody and welcome back, today I'll talk about this parameter. Sometimes we need to create...
#typescript · #webdev
-
Typescript - Tips & Tricks - any vs. unknown
Hi guys, today I'll talk about the difference between any and unknown. Any Any type is a particular...
#typescript · #webdev
-
Typescript - Tips & Tricks - Optional modifier
Hi guys and welcome back, Today I'll talk about the optional modifier. Sometimes we have objects that...
#typescript · #webdev
-
Typescript - Tips & Tricks - Index Signature
Welcome back guys, today I'll speak about the "Index Signature". In some cases, we need to create...
#typescript · #webdev
-
Typescript - Tips & Tricks - readonly modifier
How many times we expect an object property to have a value but it isn't? In these cases,...
#typescript · #webdev
-
Typescript - Tips & Tricks - Readonly Array
function sortAndReverse(list: number[]): number[] { return list.sort().reverse(); } const list =...
#typescript · #webdev
-
Typescript - Tips & Tricks - Tuple
Tuple types allow you to express an array with a fixed number of elements whose types are known, but...
#typescript · #webdev
-
Typescript - Tips & Tricks - Non-null assertion operator
In some cases, you have a field that you initialize in a method, and if you follow the flow of the...
#typescript · #webdev
-
Typescript - Tips & Tricks - Never type
Today I want to talk about the never type. As you can understand, this type identifies a piece of...
#typescript · #webdev
-
Typescript - Tips & Tricks - Assert Function
There are times that we need to create some assertions to be sure an object respects some rules. A...
#typescript · #webdev
-
Typescript - Tips & Tricks - Type Guard
There are some cases, where we need to detect the type of the object to get the correct...
#typescript · #webdev
-
Typescript - Tips & Tricks - Conditional Type
In some cases, we need to detect if an object/type has specific properties or characteristics. Let me...
#typescript · #webdev
-
Typescript - Tips & Tricks - infer keyword
Today I talk about the infer keyword. Sometimes, we need to get the value type of an array or get the...
#typescript · #webdev
-
Typescript - Tips & Tricks - Mapped Types
In some cases, we need to manipulate some types to create new types. In these cases, we have to use...
#typescript · #webdev
-
Typescript - Tips & Tricks - Advanced Types
Hi Guys, Today I'll show you some advanced utilities exposed by the typescript language. Let's...
#typescript · #webdev
-
Typescript - Tips & Tricks - Rest Parameters & Rest Arguments
Hi guy and welcome back :) Today I'll talk about the Rest Parameters and the Rest...
#typescript · #webdev