Cory House
banner
housecor.com
Cory House
@housecor.com
TypeScript syntax is often inspired by JavaScript.

In some cases, TS even uses the exact same syntax as JS for a different purpose.

The difference?
JS features focus on values.
TS features focus on types.

Here's a few examples.
June 2, 2025 at 4:32 PM
Problem: I want to enforce a string format at compile time.

Solution: Use a template literal type.

Full "TypeScript: Deep Dive" course: dometrain.com/course/deep-...
May 29, 2025 at 1:53 PM
Problem: I want to ensure my switch statement handles all potential cases.

Solution: Use TypeScript's never type.

Here's how:

Full course: dometrain.com/course/deep-...
May 28, 2025 at 11:31 AM
Problem: You have complex logic for narrowing a TypeScript type that you'd like to reuse in a few spots.

Solution: Consider an assertion function.

20% off the full course: dometrain.com/course/deep-...
May 24, 2025 at 5:29 PM
It’s live!

“TypeScript: Deep Dive” explores advanced TS concepts:

- Utility types
- Generics
- Mapped types
- Conditional types
- Template literal types
- Runtime validation
- Decorators
- tsconfig techniques

And over 250+ examples!

Get 20% off at launch here: dometrain.com/course/deep-...
May 23, 2025 at 12:31 PM
Learn TypeScript in 60 seconds.
March 14, 2025 at 12:00 PM
I think I finally have my phone-friendly vertical video format dialed in.

I'm using an iPad with a Neewer teleprompter as my monitor so I can look directly at the code as I narrate. And Camtasia creates the slick captions.

Thoughts?
March 11, 2025 at 5:05 PM
In TypeScript, interfaces and type aliases can "extend" each another.

- An interface can extend a type.
- A type alias can "extend" an interface (via a type intersection).

Clip from "TypeScript: Getting Started" on Dometrain: dometrain.com/course/getti...
March 11, 2025 at 3:45 PM
Just submitted the final clips for "TypeScript: Getting Started". 🎉

The course explores primitive types, arrays, tuples, enums, interfaces, functions, classes, modules, using TS with and without a compiler, features to avoid, and much more.

Publishing this week on Dometrain!
March 9, 2025 at 10:51 PM
Just published: Mastering Mocking in Automated Tests

I talk with @kettanaito.com about best practices for writing mocks including mocking mistakes, finding mocking boundaries, mock data, distinctions between different types of testing, and much more.
November 7, 2024 at 6:35 PM
Studio setup 2.0:

- Closed blinds (to control the light)
- New 5600K keylight & backlight
- Camera white balance at 5600K
- New camera angle (hides door)
- Recording in 4K/24p at 1/50
- Cleaner background
- Added accent lights
- Brushed my hair

Thoughts? Suggestions?
November 6, 2024 at 6:08 PM