TypeScript における型レベルバリデーション #wejs / We Are JavaScripters 36th
We Are JavaScripters! @36th で使用したスライドです。
幽霊型は型を詳細化する手法として有名ですが、TypeScript では構造的部分型の働きにより、ナイーブに移植しただけでは期待通り動作しません。そこで、型で値の種類を判別する手段として、Branded Type を用いた設計について解説します。
イベント概要:https://wajs.connpass.com/event/145639/
y_taka_23
September 30, 2019
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.