Let's suppose that I have 2 function
export const functionA = () => {// do stuff}
export const functionB = () => {// do stuff}
and I want to create another function that accepts as input only either functionA or functionB, for instance
export const anotherFunction = functionAorB => {// do stuff }
Is there a way in Typescript to specify a type representing only either functionA or functionB?