Peter Kröner
Where we're going we don't need JavaScript - Programming with Type Annotations
#1about 2 minutes
Viewing TypeScript type annotations as a language
TypeScript's type system can be treated as its own functional, set-based programming language.
#2about 2 minutes
Mapping JavaScript syntax to TypeScript type constructs
Learn how JavaScript concepts like variables, functions, and objects correspond to type aliases, generics, and object types.
#3about 2 minutes
Understanding the set-based nature of TypeScript types
All types are fundamentally sets or unions, which simplifies operations and eliminates the need for explicit loops.
#4about 2 minutes
Building a type-level function to filter union types
A practical example demonstrates how to create a generic type that uses conditionals to filter null from a union.
#5about 3 minutes
The motivation for programming with type annotations
Using type-level programming allows you to abstract and enforce core business logic, similar to how high-level languages abstract machine code.
#6about 2 minutes
Deriving concrete types from abstract business rules
Instead of writing types manually, define core business rules as abstract types and then derive all concrete implementation types from them.
#7about 4 minutes
A practical example of a type-safe message bus
The challenge of building a type-safe message bus for a browser extension is introduced as a use case for type-level programming.
#8about 5 minutes
Using generics and keyof to enforce message contracts
The `send` and `on` methods are made type-safe by using generics, the `keyof` operator, and indexed access types derived from a central payload map.
#9about 3 minutes
The benefits of deriving types from first principles
Deriving types from a central source of truth ensures consistency and provides type-level automation across your entire project.
#10about 4 minutes
Q&A on performance, interfaces, and advanced learning
The speaker answers audience questions about runtime performance, the difference between `type` and `interface`, and how to learn advanced TypeScript patterns.
Related jobs
Jobs that call for the skills explored in this talk.
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Picnic Technologies B.V.
Amsterdam, Netherlands
Intermediate
Senior
TypeScript
Angular
+1
Matching moments
01:32 MIN
Organizing a developer conference for 15,000 attendees
Cat Herding with Lions and Tigers - Christian Heilmann
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
03:17 MIN
Selecting strategic partners and essential event tools
Cat Herding with Lions and Tigers - Christian Heilmann
02:39 MIN
Establishing a single source of truth for all data
Cat Herding with Lions and Tigers - Christian Heilmann
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:48 MIN
Automating formal processes risks losing informal human value
What 2025 Taught Us: A Year-End Special with Hung Lee
03:39 MIN
Breaking down silos between HR, tech, and business
What 2025 Taught Us: A Year-End Special with Hung Lee
03:38 MIN
Balancing the trade-off between efficiency and resilience
What 2025 Taught Us: A Year-End Special with Hung Lee
Featured Partners
Related Videos
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
Jens Claes
Advanced Typing in TypeScript
Lars Hupel
Lies we Tell Ourselves As Developers
Stefan Baumgartner
All you need is types
Tal Joffe
Do TypeScript without TypeScript
Simone Sanfratello
Building software that scales with Typescript
Tal Joffe
End-to-End TypeScript: Completing the Modern Development Stack
Marco Podien
4 Steps from JavaScript to TypeScript
Phil Nash
Related Articles
View all articles



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

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript


OfferZen
Amsterdam, Netherlands
Junior
CSS
REST
TypeScript
Unit Testing
Microservices
+1

Projektron GmbH
Berlin, Germany
Remote
Intermediate
CSS
Java
React
Gradle
+5

FUNKE Mediengruppe
Berlin, Germany
Remote
Azure
TypeScript
Google Cloud Platform
Amazon Web Services (AWS)


OfferZen
The Hague, Netherlands
Intermediate
CSS
REST
TypeScript
Unit Testing
Microservices
+1

Groendus
Utrecht, Netherlands
€4-5K
TypeScript
Amazon Web Services (AWS)

engelhardt softwareentwicklung
Ditzingen, Germany
API
GIT
Angular
TypeScript