Hello there
I make YouTube videos about TypeScript, JavaScript, Functional Programming and Security. I write about these things here.
TypeScript Type Challenge Tutorials
TypeScript type-challenges are a series of challenges created by Anthony Fu. The challenge is to solve a series of problems using only the TypeSystem. For example, building reimplementing the generic...
read article
Recent Posts
TypeScript Type Challenge Unshift Walkthrough
The goal of this challenge is to implement a generic Unshift type that works like the built in Array.prototype.unshift javascript method. It should take two arguments, the first an array and the...
read articleTypeScript Type Challenge Push Walkthrough
The goal of this challenge is to implement a generic Push type that works like the built in Array.prototype.push javascript method. It should take two arguments, the first an array and the second any....
read articleTypeScript Type Challenge Concat Walkthrough
The goal of this challenge is to implement a generic Concat type works like the built in Array.prototype.concat javascript method. It should take two array arguments and return a new type with...
read articleFizz Buzz using the TypeScript Type System
Most software developers have encountered the Fizz Buzz interview question at some point in their career, because we can, we'll use the Type System in TypeScript to solve it with zero runtime...
read articleTypeScript Type Challenge Includes Walkthrough
The goal of the challenge is to implement a generic type Includes<T extends unknown[], U> that returns true if U is included in T. The challenge:...
read articleTypeScript Type Challenge Awaited Walkthrough
The goal of the challenge is to implement a generic type Awaited that returns the type of something wrapped in a Promise. The challenge:...
read articleTypeScript Type Challenge If Walkthrough
The goal of this challenge is to implement a generic If type which accepts condition C, a truthy return type T, and a falsy return type F. C is expected to be either true or false while T and F can be...
read articleTypeScript Type Challenge TupleToObject Walkthrough
The goal of the challenge is to implement a generic type called TupleToObject, that transforms the tuple type passed to it into a object type where key and value are both elements from the tuple. The...
read articleTypeScript Type Challenge Length of Tuple Walkthrough
The goal of the challenge is to implement a generic type called Length that takes an array and returns the length of that array. The challenge:...
read articleTypeScript Type Challenge First of Array Walkthrough
The goal of the challenge is to implement a generic type called First that takes an array and returns the type of the first element in the array. The challenge:...
read article