配列からリテラル型を作る

Snippet
const arr = ['1', '2', '3'] as const export type SnippetOutputType = (typeof arr)[number] // '1' | '2' | '3' の型