This is an example of using custom strict mobx-react/inject typings. The official typings are not typesafe enough and have some issues mobxjs/mobx-react#256. The custom typings use InferableComponentEnhancerWithProps type from @types/react-redux package. @types/react-redux is installed using an alias (@types/react-redux-typings-for-mobx-react) for self-documenting purpose.
- Typesafe injection without optional props, custom inject wrappers, etc.
injectcannot be used as a decorator- Extraneous
WrappedComponentproperty - Lack of
wrappedComponent
- Run
npm install([email protected]is required) oryarn - Run
npm run typecheckoryarn typecheck