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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
andoshin11
May 19, 2020
Technology
2
480
ain't giving up type-safe Express
andoshin11
May 19, 2020
Tweet
Share
More Decks by andoshin11
See All by andoshin11
Introduction to gRPC Interceptors
andoshin11
0
84
カーナベルにおけるProtobuf二次利用例
andoshin11
0
160
Envoy External AuthZとgRPC Extensionを利用した「頑張らない」Microservices認証認可基盤
andoshin11
0
900
カーナベル株式会社2024年2月 エンジニアイベント資料
andoshin11
0
490
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
310
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
780
Type Safe "Everything"
andoshin11
0
280
Hack your Nuxt router!
andoshin11
0
1.4k
GatewayパターンとSchema駆動開発
andoshin11
7
1.5k
Other Decks in Technology
See All in Technology
生成AIの利用とセキュリティ /gen-ai-and-security
mizutani
1
1.2k
製造業ドメインにおける LLMプロダクト構築: 複雑な文脈へのアプローチ
caddi_eng
1
460
Kiro のクレジットを使い切る!
otanikohei2023
0
110
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
14k
ヘルシーSRE
tk3fftk
2
240
OCI Security サービス 概要
oracle4engineer
PRO
2
13k
ソフトウェアアーキテクトのための意思決定術: Create Decision Readiness—The Real Skill Behind Architectural Decision
snoozer05
PRO
30
9k
Webアクセシビリティ技術と実装の実際
tomokusaba
0
210
AI時代にエンジニアはどう成長すれば良いのか?
recruitengineers
PRO
1
140
クラウド時代における一時権限取得
krrrr38
1
170
Master Dataグループ紹介資料
sansan33
PRO
1
4.4k
トップマネジメントとコンピテンシーから考えるエンジニアリングマネジメント
zigorou
4
550
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
120
Into the Great Unknown - MozCon
thekraken
40
2.3k
From π to Pie charts
rasagy
0
150
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
210
For a Future-Friendly Web
brad_frost
183
10k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Navigating Weather and Climate Data
rabernat
0
130
Test your architecture with Archunit
thirion
1
2.2k
Optimizing for Happiness
mojombo
378
71k
WENDY [Excerpt]
tessaabrams
9
36k
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