Typescript Determining type of generic.
Hi, I have the following generic function
How can I check inside this function when data = A, or when data = B?
How can I check inside this function when data = A, or when data = B?
const handleContinue = <T extends A | B>(data: T) => {}