Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding stateSelector to ORMOpts Type #25

Open
ankitchhatbar opened this issue Nov 11, 2020 · 1 comment
Open

Adding stateSelector to ORMOpts Type #25

ankitchhatbar opened this issue Nov 11, 2020 · 1 comment

Comments

@ankitchhatbar
Copy link

ankitchhatbar commented Nov 11, 2020

Is it possible we can add stateSelector to ORMOpts? Even if it is of any type, this will stop the compiler from complaining.
Currently, when we add stateSelector while initializing a new ORM object, below is what the compiler complains.

Argument of type '{ stateSelector: (state: any) => any; }' is not assignable to parameter of type 'ORMOpts'.

To produce this, create an ORM instance on a Typescript project with a stateSelector as below.

const orm = new ORM({
    stateSelector: state => state.orm
});
@rgazelot
Copy link

rgazelot commented Jan 6, 2021

It's solved in by "@types/redux-orm": "^0.16.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants