If I have a constant with input props and a function that returns the input ids and its default value, like this:
const Inputs = [{label: "myInput1", id: "myId1"}, {label: "myInput2" , id: "myId2" }]
const getInputValues = () => Inputs.reduce( (acc, item) => ({...acc, [item.id] : 123 }), {} )
How can I define the return type of getInputValues in TypeScript?