programmgesteuert typecription
class types {Foo: typeof Foo; Bar: typeof Bar;};
type myUnion = typeof types[keyof typeof types];
Dead Dingo
class types {Foo: typeof Foo; Bar: typeof Bar;};
type myUnion = typeof types[keyof typeof types];