Bartosz Szewczyk
>6 @ Codete
2022
Me, my bike and my dress code
Game that I'm making in my free time
(not released yet)
How about a sorting algorithm?
Typescript playgroundHow to determine a specific type
An interface with optional values
Does it work
Typescript playground
Typescript playground
A type union
Does it work
Typescript playground
Typescript playground
An unknown type
Does it work
Typescript playground
Discriminated union types
Typescript playground
for discriminated unions
since 4.6
TS playground
no bivariant or contravariant shenanigans
🙈 TS playground
How to apply it only to part of application 🤔
How can we create an enum in typescript
What's the difference
Proof
Proof
Proof
IsEqual #1
Proof
IsEqual #2
Proof
IsEqual #3
Proof
Proof
Proof
Proof
Proof
Proof
How to fix it?
Proof
Solution
Proof
Methods strict check
Typescript playgroundMethods strict check
With createNameGetter
Strict function type with void return
Typescript playgroundTS depend on duck-typing just like JS
Proof
Like what you saw?
Want to become a Typescript Pro?
Say no more!
Before:
After TS 4.7
Bartosz Szewczyk
👨🏼💻 Tech Lead @ Codete
@sztobar