Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(entity): set correct return type for getSelectors signature with …
…parent selector (#4074) BREAKING CHANGES: Selectors returned by the `adapter.getSelectors` signature that accepts a parent selector are strongly typed. BEFORE: ```ts const { selectIds, // type: (state: object) => string[] | number[] selectEntities, // type: (state: object) => Dictionary<Book> selectAll, // type: (state: object) => Book[] selectTotal, // type: (state: object) => number } = adapter.getSelectors(selectBooksState); ``` AFTER: ```ts const { selectIds, // type: MemoizedSelector<object, string[] | number[]> selectEntities, // type: MemoizedSelector<object, Dictionary<Book>> selectAll, // type: MemoizedSelector<object, Book[]> selectTotal, // type: MemoizedSelector<object, number> } = adapter.getSelectors(selectBooksState); ```
- Loading branch information