2020-04-20 ジェネリクスな配列による変数定義 TypeScript export const eventIdList = <const>["HogeEV", "PoiEV"]; export type EventId = typeof eventIdList[number];