Union de type dactylographiée

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