Hi, I'm Melvin George. I help the world by building quality software.

         

Recent blogs

How to easily make a type from a function's return value in TypeScript?

Learn how to use the `ReturnType` utility type to easily make a type from a function's return value in TypeScript

Read
TypeScript
How to easily make a type from a function's parameters in TypeScript?

Learn how to use the `Parameters` utility type to easily make a type from a function's parameters in TypeScript

Read
TypeScript
How to easily make a new type by removing null or undefined values from the union type in TypeScript?

Learn how to use the `NonNullable` utility type to easily make a new type by removing null or undefined values from the union type in TypeScript

Read
TypeScript
How to easily make a new type by removing or excluding certain values from a union type in TypeScript?

Learn how to use the `Exclude` utility type to easily make a new type by removing or excluding certain values from a union type in TypeScript

Read
TypeScript
How to easily make a new type by removing or omitting certain properties from another type in TypeScript?

Learn how to use the `Omit` utility type to easily make a new type by removing or omitting certain properties from another type in TypeScript

Read
TypeScript
How to easily make a new type by taking or picking certain properties from another type in TypeScript?

Learn how to use the `Pick` utility type to easily make a new type by taking or picking certain properties from another type in TypeScript

Read
TypeScript
How to easily make an object type that accepts only certain strings as keys in TypeScript?

Learn how to use the `Record` utility type to easily make an object type that accepts only certain strings as keys in TypeScript

Read
TypeScript
How to easily make every property in a type alias or interface to readonly properties in TypeScript?

Learn how to use the `Readonly` utility type to easily make every property in a type alias or interface to readonly properties in TypeScript

Read
TypeScript
How to easily make every property in a type alias or interface to required properties in TypeScript?

Learn how to use the `Required` utility type to easily make every property in a type alias or interface to required properties in TypeScript

Read
TypeScript
How to easily make every property in a type alias or interface to optional properties in TypeScript?

Learn how to use the `Partial` utility type to easily make every property in a type alias or interface to optional properties in TypeScript

Read
TypeScript
How to define and initialize protected readonly class fields in the constructor itself in TypeScript?

Learn how to define and initialize protected readonly class fields in the constructor itself in TypeScript

Read
TypeScript
How to define and initialize private readonly class fields in the constructor itself in TypeScript?

Learn how to define and initialize private readonly class fields in the constructor itself in TypeScript

Read
TypeScript
How to define and initialize public readonly class fields in the constructor itself in TypeScript?

Learn how to define and initialize public readonly class fields in the constructor itself in TypeScript

Read
TypeScript
How to define and initialize protected class fields in the constructor itself in TypeScript?

Learn how to define and initialize protected class fields in the constructor itself in TypeScript

Read
TypeScript
How to define and initialize private class fields in the constructor itself in TypeScript?

Learn how to define and initialize private class fields in the constructor itself in TypeScript

Read
TypeScript
How to define and initialize public class fields in the constructor itself in TypeScript?

Learn how to define and initialize public class fields in the constructor itself in TypeScript

Read
TypeScript
How to make a static method accessible only in its class in TypeScript?

Learn how to use the `private` keyword to make a static method accessible only in its class in TypeScript

Read
TypeScript
How to make a static method accessible only in its class and subclasses in TypeScript?

Learn how to use the `protected` keyword to make a static method accessible only in its class and subclasses in TypeScript

Read
TypeScript
How to make a static field accessible only in its class and subclasses in TypeScript?

Learn how to use the `protected` keyword to make a static field accessible only in its class and subclasses in TypeScript

Read
TypeScript
How to make a static field accessible only in its class in TypeScript?

Learn how to use the `private` keyword to make a static field accessible only in its class in TypeScript

Read
TypeScript
How to create methods that can be accessed without creating an instance of the class in TypeScript?

Learn how to use the `static` keyword to create methods that can be accessed without creating an instance of the class in TypeScript

Read
TypeScript
How to create fields that can be accessed without creating an instance of the class in TypeScript?

Learn how to use the `static` keyword to create fields that can be accessed without creating an instance of the class in TypeScript

Read
TypeScript
How to make class fields or methods accessible only to its class in TypeScript?

Learn how to use the `private` keyword to make class fields or methods accessible only to its class in TypeScript

Read
TypeScript
How to make class fields or methods accessible only to class and subclass in TypeScript?

Learn how to use the `protected` keyword to make class fields or methods accessible only to class and subclass in TypeScript

Read
TypeScript
How to make class fields or methods public and access from a class instance in TypeScript?

Learn how to use the `public` keyword to make class fields or methods public and access from a class instance in TypeScript

Read
TypeScript
How to make a class implement methods and properties using an interface in TypeScript?

Learn how to make a class implement methods and properties using an interface in TypeScript

Read
TypeScript
How to make a setter method in a class in TypeScript?

Learn how to use the `set` keyword to make a setter method in a class in TypeScript

Read
TypeScript
How to make a getter method in a class in TypeScript?

Learn how to use the `get` keyword to make a getter method in a class in TypeScript

Read
TypeScript
How to create class constructor overloads in TypeScript?

Learn how to create class constructor overloads in TypeScript

Read
TypeScript
How to create class methods in TypeScript?

Learn how to create class methods in TypeScript

Read
TypeScript
Read more articles →