Typescript Posts

Jun 13, 2023

Looking Up React Components Props Types

Using the React.ComponentProps to lookup types for Component Props in React. ...

Jul 18, 2022

I created a VS Code Extension - NPM Imported Packages Lens

I created a VS Code extension that provides links to view packages imported in javascript and typescript files on npm or GitHub repository ...

Mar 31, 2022

Busy Typescript Developer's Guide to the Typescript Type System - Angular Kenya

My talk About Busy Typescript Developer's Guide to the Typescript Type System for Angular Kenya. ...

Mar 17, 2022

JavaScript and Friends Online Meetup - Mar-17-2022 - Maina Wycliffe

My talk About Busy Typescript Developer's Guide to the Typescript Type System for Javascript and Friends Online Meetup. ...

Feb 25, 2022

const assertions in Typescript

In this article, we look into const assertions introduced in version 4..3 of Typescript, the purpose, and how we can use them. ...

Feb 21, 2022

The Tuple Type in Typescript

A tuple type is an array with a predefined length and predefined types in each index position in the array. ...

Nov 17, 2021

Template String Types as Discriminants in Typescript 4.5

In this article, we are going to explore Typescripts 4.5 feature - Template String Types as Discriminants using rudimentary examples. ...

Sep 26, 2021

Better Types using Discriminated Unions in TypeScript

In this article, we are going to look at how we can use discriminative unions to write better and more specific types and help typescript to be more h ...

Sep 15, 2021

Custom Type Guards in Typescript

In this article, we are going to look at how we can create our own custom type guards. Custom type guards will help you to check if a variable is of a ...

Sep 1, 2021

Typescript: why you should use unknown instead of any

The unknown type, when assigned to a variable, means that a variable type is not known. And typescript doesn't allow you to use a variable of unknown ...

Aug 25, 2021

Type Narrowing in TypeScript

In this article, we are going to learn various ways you can narrow types. Type narrowing is the process of moving a type from a less process type to a ...

Jun 23, 2021

Template Literal Types in TypeScript

In this article, we will take a closer look at template literal types and how you can take advantage of them in your day to day activities as a develo ...

Jun 16, 2021

Building an RSS Scully Plugin - Angular

For an RSS plugin, we will build a routeDiscoveryDone plugin, which is usually called when all routes have been discovered. This is going to use data ...

Jun 7, 2021

Types and Mocking - Typescript

Learn how to create functions which are easy to create mocks for using TypeScript utility types. ...

May 5, 2021

Transforming Types in TypeScript with Utility Types

In this article, we are going to have a look at these built-in utility types and a third-party library (with examples) that offers more utilities you ...

Mar 8, 2021

Angular CDK - Platform Module

The platform module provides you with information about the current platform where the Angular app is running on and features supported on it. ...

Oct 2, 2020

The State of RxJS. RxJS 7 and Beyond

We are going to discuss the state of RxJS, because the next major version – RxJS 7 – is around the corner. We are going to take a closer look at new f ...

Nov 19, 2019

How to build a reusable Modal Overlay/Dialog Using Angular CDK

In this lesson, we are going to learn how to create reusable modal overlays using Angular CDK Overlay. ...