We are defining function signatures, each with its specific input and output.
These are the possible function signature for our generateTransaction function.
When we call our generateTransaction function with the relevant type properties,
Typescript can infer the return type based on the appropriate function overload.
We are defining function signatures, each with its specific input and output. These are the possible function signature for our
generateTransaction
function. When we call ourgenerateTransaction
function with the relevant type properties, Typescript can infer the return type based on the appropriate function overload.