0

I have a TypeScript type like

type MyType =
{
    fooProp: Foo;
    barProp: Bar;
    bazProp: Baz;
};

How can I define a type which is the union of the type's properties' types, so I can have a type

Foo | Bar | Baz

?

0 Answers0