Have a parent component and child components. The goal is to lift the state up from the children to the parent like it is described in the official react tutorial - https://reactjs.org/docs/lifting-state-up.html.
In TypeScript one supposed to define props interface, like this:
interface TemperatureInputInterface {
..
this.props.onTemperatureChange: what_type_here?
}
But what type to use in this case, since all of them give smth like:
Cannot invoke an expression whose type lacks a call signature. Type 'what_type_here' has no compatible call signatures.