I have the following union type:
type Foo = 'ol' | 'ul';
and I somehow want to convert that to this using a generic (as Foo might change to include others)
type Bar = OtherType<'ol'> & OtherType<'ul'>;
I'm not quite sure where to start...
EDIT: a more concrete example with React is:
type Elements = 'ol' | 'ul';
// ... somehow transform to:
type Props = JSX.IntrinsicElements['ol'] & JSX.IntrinsicElements['ul']