sai_dive IL

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

【TypeScript】Array型

Array型

const colors: string[] = ['Red', 'Blue', 'Yellow']

上記にstring型以外のものをいれようとするとエラーが発生する