Generics
- 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 article
- TypeScript 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 article
- TypeScript 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 article
- Fizz 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 article
- TypeScript 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 article
- TypeScript 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 article
- TypeScript 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 article
- TypeScript 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 article
- TypeScript 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 article
- TypeScript 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
- TypeScript Type Challenge Exclude Walkthrough- The goal of the challenge is to implement a generic type MyExclude that works the same way the built in Exclude type works, without using Exclude The challenge:... read article
- TypeScript Type Challenge Readonly Walkthrough- The goal of the challenge is to reimplement the built in Readonly generic type that exists in TypeScript, without using Readonly itself. The challenge:... read article
- TypeScript Type Challenge Pick Walkthrough- The goal of the challenge is to reimplement the built in Pick generic type that exists in TypeScript, without using Pick itself. The challenge:... read article