#typescript

Found 32 articles tagged with #typescript

Duck Typing in JavaScript

Duck typing is a concept in programming that is often used in dynamic programming languages such as JavaScript, Python, and Ruby. It is a….

JavaScript Nullish Coalescing

Nullish coalescing is a new JavaScript feature, introduced in ES2020, that helps to handle or values more efficiently. It is represented….

JavaScript Optional Chaining

Optional chaining is a new feature in JavaScript, introduced in ES2020, that allows you to safely access nested properties or methods….

How to Mimic Nominal Typing in TypeScript

You can overcome drawbacks of structural typing in TypeScript by creating nominal types with a little bit of extra code.

TypeScript Structural Typing

If the type is shaped like a duck, it is a duck. If a goose has all the same attributes as a duck, then it also is a duck.

TypeScript Type Aliases vs Interfaces

In TypeScript, type aliases and interfaces are very similar, and in many cases you can choose between them freely. Use interface until you need to use features from type alias.

Mar 08, 2022#typescript

TypeScript Pros, Cons, Faqs, and Myths

TypeScript inherits major pros of JavaScript, but also offers additional benefits coming from static typing and other concepts specific to TypeScript.

Jun 03, 2021#typescript#guides

How to Integrate TypeScript with Babel

A powerful combination between TypeScript and Babel will enable both type checking and complex JavaScript transformations.

Learn TypeScript with Redux Codebase

Redux open-source repository is one of the most beautiful well-documented beginner-friendly TypeScript codebase.

An Overview of TypeScript

TypeScript has become the obvious choice when you want to write statically-typed code that compiled to JavaScript.

Mar 28, 2021#typescript#guides