Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TypeScript tips that could save your life
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Lucas Santos
May 11, 2023
Technology
0
230
TypeScript tips that could save your life
Lucas Santos
May 11, 2023
Tweet
Share
More Decks by Lucas Santos
See All by Lucas Santos
The Hitchhiker's Guide for an Amazing API with TypeScript
khaosdoctor
0
110
Escalando globalmente com TypeScript e JavaScript na Klarna
khaosdoctor
0
200
The future of JavaScript
khaosdoctor
0
65
É hora de falar sobre Deno
khaosdoctor
0
81
JS Software testing for beginners
khaosdoctor
0
93
Ambientes dinâmicos com GitHub Actions
khaosdoctor
0
48
The Dark Side of JavaScript
khaosdoctor
0
83
Integrating Containers Into JavaScript
khaosdoctor
0
75
Entendendo o ecossistema de containers
khaosdoctor
1
1k
Other Decks in Technology
See All in Technology
MCPで決済に楽にする
mu7889yoon
0
110
Kiroで見直す開発プロセスとAI-DLC
k_adachi_01
0
130
新規事業×QAの挑戦:不確実性を乗りこなす!フェーズごとに求められるQAの役割変革
hacomono
PRO
0
180
Amazon Qはアマコネで頑張っています〜 Amazon Q in Connectについて〜
yama3133
1
120
スピンアウト講座04_ルーティン処理
overflowinc
0
1.2k
俺の/私の最強アーキテクチャ決定戦開催 ― チームで新しいアーキテクチャに適合していくために / 20260322 Naoki Takahashi
shift_evolve
PRO
1
440
Phase11_戦略的AI経営
overflowinc
0
1.5k
20260320_JaSST26_Tokyo_登壇資料.pdf
mura_shin
0
120
AIエージェント×GitHubで実現するQAナレッジの資産化と業務活用 / QA Knowledge as Assets with AI Agents & GitHub
tknw_hitsuji
0
230
「AIエージェントで変わる開発プロセス―レビューボトルネックからの脱却」
lycorptech_jp
PRO
0
120
RGBに陥らないために -プロダクトの価値を届けるまで-
righttouch
PRO
0
110
FlutterでPiP再生を実装した話
s9a17
0
160
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
170
The Language of Interfaces
destraynor
162
26k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
130
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
150
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
220
Mind Mapping
helmedeiros
PRO
1
130
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
WCS-LA-2024
lcolladotor
0
500
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
660
How to Talk to Developers About Accessibility
jct
2
160
How to make the Groovebox
asonas
2
2k
Transcript
TypeScript tips that could save your life
who am I_ {twitter, youtube, linkedin…}.lsantos.dev software engineer_
[email protected]
typescript can be tricky sometimes
so let's cut to the chase_
tsconfig extension_
None
None
None
None
None
It's not only for bases
It's not only for bases
type_ testing
one native way: *.typetest.ts files
one native way: *.typetest.ts files https://lsantos.dev/keychain-pull
the (more) native way
vitest
tsd https://lsantos.dev/tsd-lib
move errors to types
instead of this
do this
branded types_
UUIDs are the perfect example
to brand a type
to brand a type
even better
but well… Why isn't this working
but well… Why isn't this working To be continued…
but there's another example
type guards_
but well… Why isn't this working
now we have something
but this if…
assertion functions
assertion out of tests
understand your enums_
enums produce valid JavaScript
enums produce valid JavaScript
numeric enums
string enums
constant enums
constant enums
obrigado_ lsantos.dev