DEV Community

MELVIN GEORGE profile picture

MELVIN GEORGE

Hi, I'm Melvin George, A web developer, and a blogger.

Education

Jain University, Bangalore

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

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

Reactions 6 Comments
2 min read
How to easily make every property in a type alias or interface to required properties in TypeScript?

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

Reactions 6 Comments
2 min read
How to define and initialize public readonly class fields in the constructor itself in TypeScript?

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

Reactions 6 Comments
3 min read
How to define and initialize protected class fields in the constructor itself in TypeScript?

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

Reactions 4 Comments
2 min read
How to define and initialize private class fields in the constructor itself in TypeScript?

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

Reactions 4 Comments
2 min read
How to define and initialize public class fields in the constructor itself in TypeScript?

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

Reactions 2 Comments
2 min read
How to make a static method accessible only in its class in TypeScript?

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

Reactions 4 Comments
2 min read
How to make a static method accessible only in its class and subclasses in TypeScript?

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

Reactions 4 Comments
2 min read
How to make a static field accessible only in its class and subclasses in TypeScript?

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

Reactions 6 Comments
2 min read
How to make a static field accessible only in its class in TypeScript?

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

Reactions 4 Comments
2 min read
How to create methods that can be accessed without creating an instance of the class in TypeScript?

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

Reactions 7 Comments
3 min read
How to create fields that can be accessed without creating an instance of the class in TypeScript?

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

Reactions 6 Comments
2 min read
How to make class fields or methods accessible only to its class in TypeScript?

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

Reactions 6 Comments
3 min read
How to make class fields or methods accessible only to class and subclass in TypeScript?

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

Reactions 6 Comments
4 min read
How to make class fields or methods public and access from a class instance in TypeScript?

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

Reactions 4 Comments
2 min read
How to make a class implement methods and properties using an interface in TypeScript?

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

Reactions 6 Comments
2 min read
How to make a setter method in a class in TypeScript?

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

Reactions 6 Comments
4 min read
How to make a getter method in a class in TypeScript?

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

Reactions 6 Comments
3 min read
How to create class constructor overloads in TypeScript?

How to create class constructor overloads in TypeScript?

Reactions 6 Comments
3 min read
How to create class methods in TypeScript?

How to create class methods in TypeScript?

Reactions 6 Comments
3 min read
How to create a class constructor in TypeScript?

How to create a class constructor in TypeScript?

Reactions 6 Comments
3 min read
How to make a class field readonly or immutable in TypeScript?

How to make a class field readonly or immutable in TypeScript?

Reactions 4 Comments
2 min read
How to create a field inside a class in TypeScript?

How to create a field inside a class in TypeScript?

Reactions 5 Comments
2 min read
How to create a class in TypeScript?

How to create a class in TypeScript?

Reactions 6 Comments
1 min read
How to convert the first letter of a string literal type into a lowercase format or uncapitalize in TypeScript?

How to convert the first letter of a string literal type into a lowercase format or uncapitalize in TypeScript?

Comments
1 min read
How to convert the first letter of a string literal type into an uppercase format or capitalize in TypeScript?

How to convert the first letter of a string literal type into an uppercase format or capitalize in TypeScript?

Comments
1 min read
How to convert a string literal type into a lowercase format in TypeScript?

How to convert a string literal type into a lowercase format in TypeScript?

Comments
1 min read
How to convert a string literal type into an uppercase format in TypeScript?

How to convert a string literal type into an uppercase format in TypeScript?

Comments
1 min read
How to make mutable object type from readonly object type keys in TypeScript?

How to make mutable object type from readonly object type keys in TypeScript?

Comments
3 min read
How to make object type from another object type keys in TypeScript?

How to make object type from another object type keys in TypeScript?

Comments
2 min read
How to make a map object type from a union type in TypeScript?

How to make a map object type from a union type in TypeScript?

Comments
3 min read
How to get all the body values from a POST request in Nestjs?

How to get all the body values from a POST request in Nestjs?

Comments
5 min read
How to make a simple API endpoint that catches all requests with any methods in Nestjs?

How to make a simple API endpoint that catches all requests with any methods in Nestjs?

Comments
4 min read
How to make a simple DELETE request or an API endpoint in Nestjs?

How to make a simple DELETE request or an API endpoint in Nestjs?

Comments
4 min read
How to make a simple PUT request or an API endpoint in Nestjs?

How to make a simple PUT request or an API endpoint in Nestjs?

Comments
4 min read
How to make a simple POST request or an API endpoint in Nestjs?

How to make a simple POST request or an API endpoint in Nestjs?

Comments
4 min read
How to get all query parameters from a GET request in Nestjs?

How to get all query parameters from a GET request in Nestjs?

Comments
3 min read
How to dynamically get the interface or type alias property value types from conditional types in TypeScript?

How to dynamically get the interface or type alias property value types from conditional types in TypeScript?

Comments
3 min read
How to choose types conditionally from another type in TypeScript?

How to choose types conditionally from another type in TypeScript?

Comments
2 min read
How to make a simple GET request or an API endpoint in Nestjs?

How to make a simple GET request or an API endpoint in Nestjs?

Comments
4 min read
How to create a new project or an app in Nestjs?

How to create a new project or an app in Nestjs?

Comments
1 min read
How to install Nestjs CLI?

How to install Nestjs CLI?

Comments
1 min read
How to get the object type from an array of objects in TypeScript?

How to get the object type from an array of objects in TypeScript?

Comments
2 min read
How to make union type from all the properties in a type alias or an interface in TypeScript?

How to make union type from all the properties in a type alias or an interface in TypeScript?

Comments
2 min read
How to make a union type from a type alias or interface properties in TypeScript?

How to make a union type from a type alias or interface properties in TypeScript?

Comments
2 min read
How to get a property type from another type alias or an interface in TypeScript?

How to get a property type from another type alias or an interface in TypeScript?

Comments
2 min read
How to get the type of another variable in TypeScript?

How to get the type of another variable in TypeScript?

Comments
1 min read
How to make a union type from an object index signature key type in Typescript?

How to make a union type from an object index signature key type in Typescript?

Comments
2 min read
How to make a union type from another object type in TypeScript?

How to make a union type from another object type in TypeScript?

Comments
2 min read
How to constrain or control a generic type parameter using another generic type parameter in TypeScript?

How to constrain or control a generic type parameter using another generic type parameter in TypeScript?

Comments
3 min read
How to make Generic Functions that accept a value or an object with certain properties in TypeScript?

How to make Generic Functions that accept a value or an object with certain properties in TypeScript?

Reactions 3 Comments
4 min read
How to make generic interface types for functions in TypeScript?

How to make generic interface types for functions in TypeScript?

Comments
3 min read
How to make a readonly tuple type in TypeScript?

How to make a readonly tuple type in TypeScript?

Comments
2 min read
How to make an array with a specific length or array elements in TypeScript?

How to make an array with a specific length or array elements in TypeScript?

Comments
3 min read
How to make a type alias that changes type according to generic parameter type in TypeScript?

How to make a type alias that changes type according to generic parameter type in TypeScript?

Comments
3 min read
How to make Generic Interfaces that change type according to generic parameter type in TypeScript?

How to make Generic Interfaces that change type according to generic parameter type in TypeScript?

Comments
3 min read
How to add types to an interface from multiple interfaces in TypeScript?

How to add types to an interface from multiple interfaces in TypeScript?

Comments
2 min read
How to add types to an interface from another interface or extend types in TypeScript?

How to add types to an interface from another interface or extend types in TypeScript?

Comments
2 min read
Which type to use for objects when properties are not known ahead of time in TypeScript?

Which type to use for objects when properties are not known ahead of time in TypeScript?

Comments
3 min read
How to make object properties read-only or immutable in TypeScript?

How to make object properties read-only or immutable in TypeScript?

Comments
3 min read
loading...