TypeScript introduces a new type called “object type”. This type is created specifically for objects and makes it working with them easier. In this tutorial, you will learn about how to extend object types and how to use intersection types. You will also learn how to create object types using generics.
Category: TypeScript
Introduction to Object Types in TypeScript Pt1
In JavaScript, objects are among the most popular ways to work with and pass around data. In TypeScript, there is a special type called “object type” created solely for objects. This tutorial will help you understand what object types in TypeScript are and how to work with them.
Functions in TypeScript: A Simple Introduction
Functions are fundamental part of JavaScript. They help make code reusable while keeping it flexible. TypeScript takes these benefits further by helping you write type safe functions. This tutorial will show you how to use functions in TypeScript, how to specify types for parameters, return types and more.
TypeScript Interfaces: A Quick Guide to Help You Get Started
TypeScript brings many useful improvements to JavaScript language. One of them is static typing system that can help you write type safe code. Interfaces are part of this typing system. This tutorial will help you understand what TypeScript interfaces are and how to use them.
Getting Started With Built-in Utility Types in TypeScript Part 2
TypeScript comes with a number of built-in utility types. These types can be very useful. They can help you create new, and also very advanced, types from existing with only a bit of code. In this article, you will learn about some of these utility types, how they work and also how to use them.… Continue reading Getting Started With Built-in Utility Types in TypeScript Part 2
Getting Started With TypeScript Built-in Utility Types Part 1
TypeScript can be difficult to understand for many developers. One area causing troubles are advanced types. Part of this area are utility types built in TypeScript. They can help you create new types from existing. In this article, you will learn how some of these utility types work and how to use them.