This package offers an index.js.flow file with Flow types. You can import them as a Flow library. If you have done this, you may have a look at the Flow example for usage.
If you include the Flow definitions of this package, you will be able to use Extended$State<SubStateValues, SubStateMutators> and Extended$StateHelper<SubStateValues, SubStateMutators>. See the Flow example for usage.
The error message says there is a problem with pure, which is not true. The problem is that id is not defined in type Props, but is defined in defaultProps.
If you cannot see an error in the referenced hoc, always check the defaultProps hoc for missing props and remove these props from defaultProps or add them to the type Props.
The error message says that there are no statics, which is not true. This is because currently the types of the statics are not copied over if you use defaultProps before statics.
If you use defaultProps after statics the error will disappear.
If you are a Flow expert, feel free to contribute to the Flow types of this package and solve the problems described above.

