Upgrade to Pro — share decks privately, control downloads, hide ads and more …

型述語(type predicate)のすこし安全な使い方

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for canalun canalun
December 21, 2022

型述語(type predicate)のすこし安全な使い方

TypeScriptの型述語(type predicate)を少し安全に使う方法です。
型述語(type predicate)というのは、A is Tと書く関数のことです。

下記リンク先の自記事の抜粋です。
https://zenn.dev/canalun/articles/safe_type_predicate

#めぐろLT

Avatar for canalun

canalun

December 21, 2022
Tweet

More Decks by canalun

Other Decks in Programming

Transcript