Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
ain't giving up type-safe Express
andoshin11
May 19, 2020
Technology
2
340
ain't giving up type-safe Express
andoshin11
May 19, 2020
Tweet
Share
More Decks by andoshin11
See All by andoshin11
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
200
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
560
Type Safe "Everything"
andoshin11
0
180
Hack your Nuxt router!
andoshin11
0
950
GatewayパターンとSchema駆動開発
andoshin11
8
1.2k
Catch up Nuxt.js 2019.02
andoshin11
0
1.5k
The future of Nuxt.js with TypeScript
andoshin11
0
65
Clean Architecture with Vue
andoshin11
13
8k
vue-cli 3.0時代のNuxt.js
andoshin11
3
5.5k
Other Decks in Technology
See All in Technology
「一通りできるようになった」その先の話
hitomi___kt
0
150
SignalR を使ったアプリケーション開発をより快適に!
nenonaninu
0
720
2年で10→70人へ! スタートアップの 情報セキュリティ課題と施策
miekobayashi
1
720
ポストモーテム運用を支える文化と技術 / Culture and Technology Supporting Postmortem Operations
chaspy
1
110
MoT/コネヒト/Kanmu が語るプロダクト開発xデータ分析 - 分析から機械学習システムの開発まで一人で複数ロールを担う大変さ
masatakashiwagi
3
800
Dockerに疲れた人のためのLXDではじめるシステムコンテナ入門
devops_vtj
0
140
02_プロトタイピングの進め方
kouzoukaikaku
0
880
あつめたデータをどう扱うか
skrb
2
180
データ分析基盤の要件分析の話(202201_JEDAI)
yabooun
0
400
Multi-Cloud Gatewayでデータを統治せよ!/ Data Federation with MCG
tutsunom
1
360
FlexScan HD2452Wの 後継を探して
tring
0
6.6k
Periodic Multi-Agent Path Planning
hziwara
0
160
Featured
See All Featured
Scaling GitHub
holman
453
140k
For a Future-Friendly Web
brad_frost
166
7.8k
No one is an island. Learnings from fostering a developers community.
thoeni
12
1.5k
Documentation Writing (for coders)
carmenintech
51
2.9k
Embracing the Ebb and Flow
colly
75
3.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
22
43k
Faster Mobile Websites
deanohume
295
29k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
318
19k
Producing Creativity
orderedlist
PRO
335
38k
Done Done
chrislema
178
15k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
24
4.7k
Gamification - CAS2011
davidbonilla
75
4.1k
Transcript
ain’t giving up type-safe Express @andoshin11 19. 5. 2020 #隅田川.js
Who am I ? hin Ando (a.k.a Andy) @andoshin11 -
Freelance Full- tack Developer - ype cript / Vue.js / eact / Go / uby / erraform / etc… - ❤ Code Generation!
ecent Works: typescript-error-reporter-action
ecent Works: vue-type-audit
Express with ype cript
What’s new with @types/express • Generic eq/ es ype •
H Methods Awareness (← my first contribution!!) • Generic uery arameter ype • Enhanced Middleware ype • Improved ame- ite Cookie options • and more...
oute handlers
None
oute handlers Dictionary ype bject ype any Can send anything
Mapping Handler ypes
Mapping Handler ypes
eparating Declaration Multiple handler types can be defined for different
paths
H Method Distinction eceives Method type as a Generic input
Am I really doing this...
Let the tools do their jobs!!
typed-oax
typed-oax Open API Open API AST TypeScript AST Handler Types(d.ts)
Generate Handler ypes using pen A I & A arser
typed-oax DEM