TypeScriptでEnum型みたいなことをする
code:typescript
export const Hoge = {
Foo: "Foo",
Bar: "Bar",
Baz: "Baz",
} as const;
export const Hoges =
Syntax.Foo, Syntax.Bar, Syntax.Baz
as const;
export type Hoge = (typeof Hoge)
keyof typeof Hoge
;