Hallpass Academy
Categories
Series
Focus on Typescript as both a language and an approach to coding better apps.
Typescript
found 12 post(s)
Necessity is the Mother of Invention
Generate Type from Dictionary
How I discovered a cool little tip on creating string literal union types from dictionaries, and why it matters.
by Gail Johnson * Feb. 09, 2026
Typescript, Notes, Challenge
Interfaces, Method Overloading, and Implementing these Interfaces
Typescript Method Overloading
Why do we need method overloading when we can create a general method signature using union parameter types? Let's find out.
by Robert Banning * Oct. 01, 2024
Typescript, Challenge
Exercise in Typescript Typing
Typescript Object Keys and Values
At first, this will seem an easy challenge as part one can be accomplished with basic Javascript functionality. Part two provides you with the opportunity to demonstrate your knowledge of accessing property on an unknown object.
by Gail Johnson * Aug. 21, 2024
Typescript, Challenge
How many red beans do you have?
Bowl of Jelly Beans
Challenge to analyze a bowl of jelly beans to determine the frequency of each color bean. Difficulty: medium
by Robert Banning * Jul. 23, 2024
Typescript, Challenge
Can you create TWO deepClone() functions?
Typescript Deep Clone Challenge
The spread operator can give you a clone (copy) of an object, but its properties still point to the same objects. How do you create a complete true clone of an object such that no properties point to original properties? Difficulty: medium
by Wiggy * Jul. 17, 2024
Typescript, Challenge
Create the function to do it all!
Function Overloading in Typescript
Function overloading allows functions to share the same name but have different signatures (parameters) and implementations. Understanding function overloading is an essential skill in your TS toolbelt.
by Robert Banning * Jun. 04, 2024
Notes, Typescript
Great for initializing object...
Nullish Coalescing Assignment
by Robert Banning * May. 04, 2024
Typescript, Notes
Limitations on extending/intersecting objects in Typescript
Overriding Properties when Extending Objects
Learn why you can't extend interfaces or intersect object types with common properties in Typescript; and how you can work around this.
by Robert Banning * Mar. 08, 2024
Typescript, Notes
Why shouldn't you be able to reduce your set?
Typescript Set Reduce
In this challenge, you will level the playing ground giving Set the ability to reduce.
by Gail Johnson * Jan. 16, 2024
Typescript, Challenge
Referencing function parameter as the default for another parameter.
Typescript - Defaulting Parameters
I was sure this wasn't possible! Here is how you can use one function parameter as the default for another parameter. Follow up with a challenge. Difficulty: easy
by Wiggy * Sep. 18, 2023
Notes, Typescript, Challenge
Using `extends` as a ternary expressions when typing
Gentle Introduction to Typescript Conditional Types
Today, we explore a way to create Typescript types that are based on some condition. We often (usually) use `extends` to create ternary expressions allowing us to build conditional types.
by Robert Banning * Mar. 17, 2023
Typescript
Why would anyone want static typing?
Getting Started w/ Typescript
Are you new to Typescript? This mini-introduction will get you started and hopefully spark interest in exploring more about Typescript.
by Robert Banning * Feb. 28, 2023
Typescript