We are defining function signatures, each with its specific input and output.
These are the possible function signature for our generateTransactionPayload function.
When we call our generateTransactionPayload 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
generateTransactionPayload
function. When we call ourgenerateTransactionPayload
function with the relevant type properties, Typescript can infer the return type based on the appropriate function overload.