Michael Hladky & Stefan Baumgartner
The Art and Craft of Type Development
#1about 6 minutes
The challenge of typing deeply nested object properties
Manually creating function overloads for each level of object nesting is not a scalable or dynamic solution for property selection.
#2about 9 minutes
Setting up a playground for advanced type development
Isolate type development by using the TypeScript playground, a sample data object, and a declared function to focus solely on type signatures.
#3about 13 minutes
Recursively generating a union type for nested keys
Build a recursive helper type using string literals and conditional types to generate a union of all possible dot-notation paths for a nested object.
#4about 8 minutes
Inferring the return type from a string path
Use a recursive conditional type with the `infer` keyword to parse a dot-notation string and correctly determine the type of the selected nested property.
#5about 6 minutes
Recapping the workflow and current TypeScript limitations
The development process involves isolating the problem, using helper types, and understanding current limitations like variadic tuple types for dynamic argument lists.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
00:57 MIN
Understanding the power and popularity of TypeScript
End-to-End TypeScript: Completing the Modern Development Stack
00:51 MIN
Understanding TypeScript's origins and role in scalability
All you need is types
38:46 MIN
Evaluating the strengths and limitations of TypeScript
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
23:46 MIN
Advanced typing for complex custom operators
How to Create New RxJS Operators
25:07 MIN
Q&A on performance, interfaces, and advanced learning
Where we're going we don't need JavaScript - Programming with Type Annotations
30:50 MIN
How to convince your team to adopt TypeScript
4 Steps from JavaScript to TypeScript
19:52 MIN
Minimizing boilerplate code with advanced TypeScript features
All you need is types
09:46 MIN
Exploring the key benefits of adopting TypeScript
Do TypeScript without TypeScript
Featured Partners
Related Videos
Typed Security: Preventing Vulnerabilities By Design
Michael Koppmann
Advanced Typing in TypeScript
Lars Hupel
Lies we Tell Ourselves As Developers
Stefan Baumgartner
Vuejs and TypeScript- Working Together like Peanut Butter and Jelly
Rob Richardson
Hello generics, goodbye boilerplate!
Miroslav Jonaš
Where we're going we don't need JavaScript - Programming with Type Annotations
Peter Kröner
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
Jens Claes
Angular tips/tricks you can use from tomorrow on
Benedikt Starzengruber
Related Articles
View all articles

.webp?w=240&auto=compress,format)

From learning to earning
Jobs that call for the skills explored in this talk.

Senior Frontend Developer - Typescript / Svelte - (f/m/x)
doinstruct Software GmbH
Berlin, Germany
Senior
GIT
JavaScript
TypeScript

Senior Angular Developer (m/w/d)
autoiXpert GmbH & Co. KG
Stuttgart, Germany
Senior
Node.js
Angular
MongoDB
TypeScript

TypeScript / React Entwickler
Michael Page International (Deutschland) GmbH
Remote
RxJS
WebPack
GraphQL
TypeScript

Senior Fullstack Developer (Typescript, Angular, Nest.js)
Navigating Art
Berlin, Germany
Senior
GIT
RxJS
NestJS
TypeScript
Software Architecture
+1




