
741: TypeScript Interview Questions - STUMP’d
About this episode
Wes and Scott tackle TypeScript trivia, from combining string literal types to unraveling the mystery of d.ts files. Join them as they challenge each other on conditional types, interfaces, triple-slash directives, and TypeScript records.
Show Notes 00:00 Welcome to Syntax!
TypeScript
01:05 Brought to you by Sentry.io.
03:20 How do you combine string literal types?
Template Literal Types
06:34 What is a TypeScript Generic and why would you use one?
TypeScript Generics
08:12 How do you write a conditional type?
TypeScript Conditional Types
09:58 Generating TypeScript type from a function.
Stricter Generators
14:09 How do d.ts files work?
Module .d.ts
16:25 Name one difference between a type and an interface.
Types vs Interfaces
19:15 What is a tripple-slash directive and why would you use them?
Tripple-Slash Directives
20:52 What is a TypeScript record and what is it used for?
Utility Types
Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads
Scott:X Instagram Tiktok LinkedIn Threads
Randy: X Instagram YouTube Threads
More from Syntax - Tasty Web Development Treats
Scott and Wes get into closing the gap between your taste and your skills, with tips on design inspiration, snappier animations and easing. They also share an entry-level setup for recording video les…
Scott and CJ dig into Exact, Expo’s new Rust-based runtime that takes one codebase to web, iOS, macOS and Linux with no React Native involved, plus Bombadil’s property-based testing for web UIs. They…
Scott and Wes sit down with Michael Arnaldi to dig into Effect v4 and why guardrails matter now that AI agents are writing so much of our code. They discuss going zero dependencies, a 5x smaller bundl…
Scott and Wes sit down with GitHub’s Kyle Daigle to ask what the hell is going on with GitHub: the downtime, the agent traffic spike, and the infrastructure overhaul decoupling storage from compute. P…
Wes, Scott, and CJ are back with two weeks of news: Reddit is forcing everyone to log in, r/opensource bans anything AI, and CSS-Tricks is independent again. Plus Anomaly's Hex dictation app, Mitchell…