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
390
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
200
カーナベル株式会社2024年2月 エンジニアイベント資料
andoshin11
0
110
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
260
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
680
Type Safe "Everything"
andoshin11
0
210
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
79
Other Decks in Technology
See All in Technology
セキュリティ監視の内製化 効率とリスク
mixi_engineers
PRO
7
810
エンジニア向け会社紹介資料
caddi_eng
15
250k
標準ライブラリの奥深アップデートを掘り下げよう!
logica0419
2
430
2024年版 運用者たちのLLM
nwiizo
3
390
なぜクラウドサービスで Web コンソールを提供するのか
shuta13
4
1.9k
[RSJ24] Object Retrieval in Large-Scale Indoor Environments Using Dense Text with a Multi-Modal Large Language Model
keio_smilab
PRO
0
230
Eventual Detection Engineering
ken5scal
0
930
FastConnect の冗長性
ocise
0
7.1k
LLMに日本語テキストを学習させる意義
ksaito
13
3.6k
Staff Engineer / 20240827 Yuichiro Masui
shift_evolve
0
160
Azure SQL Database Hyperscale HA レプリカの監視
sansantech
PRO
0
210
Dify - LINE Bot連携 考え方と実用テクニック
uezo
5
1.1k
Featured
See All Featured
What the flash - Photography Introduction
edds
67
11k
Unsuck your backbone
ammeep
667
57k
Statistics for Hackers
jakevdp
793
220k
Building a Scalable Design System with Sketch
lauravandoore
458
32k
Designing on Purpose - Digital PM Summit 2013
jponch
113
6.8k
Embracing the Ebb and Flow
colly
83
4.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
45
4.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
It's Worth the Effort
3n
182
27k
Faster Mobile Websites
deanohume
304
30k
How GitHub (no longer) Works
holman
310
140k
Intergalactic Javascript Robots from Outer Space
tanoku
268
26k
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