TypeScript配列からUnionTypesをつくる
code:ts
const keys = 'yes', 'no' as const
type Key = typeof inJapanKeysnumber // 'yes' | 'no'
#typescript