Typescript How TypeScript Conditional Types Work Conditional types in TypeScript let us check if a type conforms to a certain condition, and return types based on that. #typescript
🔎 TypeScript Array Type Typescript Arrays are fundamental in both TypeScript and Javascript, so let's look at how to define Array types in TypeScript. #typescript
🧩 Type Casting in TypeScript Typescript Sometimes in TypeScript, variables can have unknown types. Let's look at how we can solve this problem with type casting.. #typescript
🤖 TypeScript Optional Parameters Typescript Functions in TypeScript are different than Javascript in that all parameters are required by default. Let's look at how to make parameters optional in TypeScript. #typescript
How the typeof Operator works in TypeScript typescript Typeof already has vanilla Javascript functionality, but TypeScript gives it a few extra features. Let's look at how it works. #typescript
How Intrinsic Type Manipulations work in TypeScript typescript TypeScript provides intrinsic type manipulations to let us change our strings into different formats, like uppercase, lowercase, or capitalized versions of themselves. Let's look at how they work. #typescript
How Template Literal Types work in TypeScript typescript Template literal types let us enforce certain types in TypeScript in the same way we use template literals in normal Javascript. Let's look at how they work. #typescript
How to convert a String to a Number in TypeScript typescript It can be confusing in strongly typed languages switching between types. Let's look at how to convert a string to a number in TypeScript #typescript
How the TypeScript ReturnType Type works typescript The ReturnType utility Type in TypeScript lets us take the outputs of a function, and codify a new type based on that. Let's look at how it works. #javascript #typescript
How the TypeScript NonNullable Type Works typescript The NonNullable is a utility type in TypeScript which creates a new type, whilst removing all null or undefined elements. #typescript #javascript
How the TypeScript Parameters Type Works typescript The Parameters type is a utility type in TypeScript that lets us take the arguments of a function, and turn it into a new type. Let's look at how it works. #typescript #javascript
How the TypeScript Pick Type works typescript The Pick utility Type lets us take types based off existing ones, by selecting specific elements from them. Let's look at how it works. #javascript #typescript