How To Use the Built-In InstanceType Type in TypeScript

Sailing the instances of TypeScript classes with mapaches 🦝

Dr. Derek Austin 🥳
Totally TypeScript
Published in
3 min readDec 27, 2023

--

You see, these glasses are an instance of the Glasses class. Woof, woof. Photo by Jamie Street on Unsplash

TypeScript, ahoy! 🏴‍☠️ The sea spray, the mapache’s treasure trove, the lo-fi radio! 🦜Our ship is full to the brim of nifty tools to make our developer lives more type-safe and predictable. Let’s open our treasure chest, and what will we find? Today, it’s an OOP

--

--

Dr. Derek Austin 🥳
Totally TypeScript

I write about MongoDB vs. PostgreSQL, Git, React, JavaScript, VS Code, TypeScript, and Next.js plus real-world programming career advice.