Is there a way in TypeScript to model a function that can return an already specified union type, like myFunc in the example below?
myFunc
type UnionType =