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
ain't giving up type-safe Express
Search
andoshin11
May 19, 2020
Technology
2
380
ain't giving up type-safe Express
andoshin11
May 19, 2020
Tweet
Share
More Decks by andoshin11
See All by andoshin11
カーナベル株式会社2024年2月 エンジニアイベント資料
andoshin11
0
78
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
250
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
660
Type Safe "Everything"
andoshin11
0
200
Hack your Nuxt router!
andoshin11
0
1.1k
GatewayパターンとSchema駆動開発
andoshin11
8
1.2k
Catch up Nuxt.js 2019.02
andoshin11
0
1.8k
The future of Nuxt.js with TypeScript
andoshin11
0
77
Clean Architecture with Vue
andoshin11
13
8.4k
Other Decks in Technology
See All in Technology
ユーザーストーリーのレビューを自動化したみたの
bun913
1
410
オーナーシップを持つ領域を明確にする
konifar
13
3.1k
web-application-security
matsuihidetoshi
0
140
GraphQL 成熟度モデルの紹介と、プロダクトに当てはめた事例 / GraphQL maturity model
mh4gf
7
1.3k
Next'24 事例セッションの紹介とクラウド資格を活用したキャリア形成について語りMuscle
yasumuusan
1
430
Azure犬駆動開発の記録/GlobalAzureFukuoka2024_20240420
nina01
1
200
Postman v10リリース後を振り返る / Looking back at Postman v10 after release
yokawasa
1
150
20240418_Google ColabにLLMが搭載されたようなのでPython x データ分析の勉強方法を考えてみる
doradora09
0
120
テストプロセスで大事にしていること #jasstnano
makky_tyuyan
0
160
ServiceNow Knowledge Learning Rise up
manarobot
0
200
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
200
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
160
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
Code Review Best Practice
trishagee
55
15k
10 Git Anti Patterns You Should be Aware of
lemiorhan
648
58k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
187
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
A Philosophy of Restraint
colly
197
16k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
Side Projects
sachag
451
41k
Infographics Made Easy
chrislema
238
18k
The Pragmatic Product Professional
lauravandoore
25
5.8k
Typedesign – Prime Four
hannesfritz
36
2.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