prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

bug(types): populates is missing from ReduxFirestoreQuerySetting interface #1027

Closed keithkelly31 closed 3 years ago

keithkelly31 commented 3 years ago

When using useFirestoreConnect in a js or jsx file it works as expected. When working in typescript I receive an error:

'populates' does not exist in type 'ReduxFirestoreQuerySetting | ReduxFirestoreQuerySetting[] | string[] | mapper<unknown, (string | ReduxFirestoreQuerySetting)[]> | mapper<...>'.ts(2345)

Can populates be added to the proper types?

prescottprue commented 3 years ago

The v3.8.1 release includes a fix for this. Reach out if it isn't working as expected thanks for reporting!