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
400
ain't giving up type-safe Express
andoshin11
May 19, 2020
Tweet
Share
More Decks by andoshin11
See All by andoshin11
Envoy External AuthZとgRPC Extensionを利用した「頑張らない」Microservices認証認可基盤
andoshin11
0
310
カーナベル株式会社2024年2月 エンジニアイベント資料
andoshin11
0
120
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
270
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
690
Type Safe "Everything"
andoshin11
0
220
Hack your Nuxt router!
andoshin11
0
1.2k
GatewayパターンとSchema駆動開発
andoshin11
8
1.3k
Catch up Nuxt.js 2019.02
andoshin11
0
1.9k
The future of Nuxt.js with TypeScript
andoshin11
0
84
Other Decks in Technology
See All in Technology
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.3k
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
複雑なState管理からの脱却
sansantech
PRO
1
150
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
180
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
2
610
AGIについてChatGPTに聞いてみた
blueb
0
130
SSMRunbook作成の勘所_20241120
koichiotomo
2
140
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
160
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
130
Featured
See All Featured
Fireside Chat
paigeccino
34
3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
A better future with KSS
kneath
238
17k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
It's Worth the Effort
3n
183
27k
We Have a Design System, Now What?
morganepeng
50
7.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
96
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
The Language of Interfaces
destraynor
154
24k
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