ポスト
Using startsWith & endsWith to narrow type · Issue #46958 · microsoft/TypeScript · GitHub github.com/microsoft/Type… ・startsWith をオーバーロードすると影響範囲が広すぎる ・Template Literal Type は組合せ爆発を起こしパフォーマンスが劣化する という理由で採用されていないみたい。
メニューを開くUsing startsWith & endsWith to narrow type · Issue #46958 · microsoft/TypeScript · GitHub github.com/microsoft/Type… ・startsWith をオーバーロードすると影響範囲が広すぎる ・Template Literal Type は組合せ爆発を起こしパフォーマンスが劣化する という理由で採用されていないみたい。
メニューを開く