I have the following function and object as its input:
const myResult = myFunc({
someInnerFunction: (innerArgument) => {
return innerArgument.myProperty
}
})
And a given type:
type MyType = {
myProperty: number | boolean
}
How can i make sure myFunc types innerArgument as type MyType BUT ALSO types myResult as the equivalent to the type
{
someInnerFunction(innerArgument: MyType): number | boolean
}
?
If I understand your question, just this: