app-config
app-config copied to clipboard
Find better ergonomics for accessing TypeScript enums from generated types
Generated enums aren't accessible by code because they're embedded in type files, which aren't usually imported directly.
Convert:
export enum MyType {
Bar = 'bar',
Baz = 'baz',
Foo = 'foo',
}
Into:
export type MyType = 'bar' | 'baz' | 'foo';