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
240
カーナベル株式会社2024年2月 エンジニアイベント資料
andoshin11
0
110
Private Cloudを支える最高のユーザーガイド運用技術
andoshin11
0
260
TS CompilerがVueを喋れても良いじゃないか
andoshin11
0
680
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
79
Other Decks in Technology
See All in Technology
不動産売買取引におけるAIの可能性とプロダクトでのAI活用
zabio3
0
260
「認証認可」という体験をデザインする ~Nekko Cloud認証認可基盤計画
logica0419
2
430
効果的なオンコール対応と障害対応
ryuichi1208
5
2.9k
AWS SAW を広めたい @四国クラウドお遍路
kazzpapa3
0
230
Jetpack Compose Modifier 徹底解説 / Jetpack Compose Modifier
wiroha
0
180
AI でアップデートする既存テクノロジーと、クラウドエンジニアの生きる道
soracom
PRO
2
550
OCI で始める!! Red Hat OpenShift / Get Started OpenShift on OCI
oracle4engineer
PRO
1
170
フルカイテン株式会社 採用資料
fullkaiten
0
32k
JEP 480: Structured Concurrency
aya_ebata
0
130
四国クラウドお遍路 2024 in 高知 オープニング
yukataoka
0
200
忙しい人のためのLangGraph概要まとめ
__ymgc__
1
170
OSTという文化を組織に根付かせてみた
sansantech
PRO
2
290
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
8.9k
Building a Scalable Design System with Sketch
lauravandoore
458
32k
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
GraphQLの誤解/rethinking-graphql
sonatard
65
9.8k
Why Our Code Smells
bkeepers
PRO
334
56k
We Have a Design System, Now What?
morganepeng
48
7.1k
KATA
mclloyd
27
13k
[RailsConf 2023] Rails as a piece of cake
palkan
48
4.6k
The Invisible Customer
myddelton
119
13k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Designing for Performance
lara
604
68k
RailsConf 2023
tenderlove
28
810
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