TS 5.5 では関数本体から型述語が推論されるようになる(is を書かなくてもよい)。式を組み合わせて複雑なオブジェクトの絞り込みも可能。ただし `.filter(Boolean)` はおそらく従来通り

jay-esjay-es のブックマーク 2024/03/18 09:59

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Type Predicate Inference: The TS 5.5 Feature No One Expected

    Matt PocockMatt is a well-regarded TypeScript expert known for his ability to demystify complex TypeScript concepts. TypeScript 5.5 will be dropping in the next couple of months. And thanks to one ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう