There is a function that returns an object:
const Data = (arg0: string, arg1: number) => { return {arg0: arg0, arg1: arg1} }; This object is passed to another function:
setData(Data("0", 1)); Is it correct to set the type of the argument in the setData constructor like this:
const setData = (data: Data) => {...} Or does it only mean that the function itself is passed, and not its result?