sai_dive IL

学んだことのアウトプットブログ

【TypeScript】ユニオンタイプ

ユニオンタイプ

  • 複数の型指定を定義
let 変数名: number | string;