Typescript では Type assertion を使う代わりに実行時型チェックを強制する ... interface Song { type: 'song'; name: string; singer: string; } ...
確定! 回上一頁