diff --git a/README.md b/README.md index 89923bc4d..a73737178 100644 --- a/README.md +++ b/README.md @@ -1145,6 +1145,10 @@ const selectCompletedTodosLength = createSelector( These updates aim to enhance flexibility, performance, and developer experience. For detailed usage and examples, refer to the updated documentation sections for each feature. +- **Breaking Changes**: + + - Removed `ParametricSelector` and `OutputParametricSelector` types. Their functionalities are now integrated into `Selector` and `OutputSelector` respectively, which inherently support additional parameters. +
[ ↑ Back to top ↑ ]
diff --git a/src/index.ts b/src/index.ts index a61ada271..dde6f5ae4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,11 +27,9 @@ export type { GetParamsFromSelectors, GetStateFromSelectors, MemoizeOptionsFromParameters, - OutputParametricSelector, OutputSelector, OutputSelectorFields, OverrideMemoizeOptions, - ParametricSelector, Selector, SelectorArray, SelectorResultArray, diff --git a/src/types.ts b/src/types.ts index 5ac812ca7..3ec3f0404 100644 --- a/src/types.ts +++ b/src/types.ts @@ -198,7 +198,6 @@ export type OutputSelectorFields< /** * The memoized version of {@linkcode OutputSelectorFields.resultFunc resultFunc}. - * */ memoizedResultFunc: Combiner & ExtractMemoizerFields @@ -216,13 +215,11 @@ export type OutputSelectorFields< /** * Counts the number of times {@linkcode OutputSelectorFields.memoizedResultFunc memoizedResultFunc} has been recalculated. - * */ recomputations: () => number /** * Resets the count of {@linkcode OutputSelectorFields.recomputations recomputations} count to 0. - * */ resetRecomputations: () => 0 @@ -298,30 +295,6 @@ export type Combiner = Distribute< (...resultFuncArgs: SelectorResultArray) => Result > -/** - * A selector that is assumed to have one additional argument, such as - * the props from a React component. - * - * @public - */ -export type ParametricSelector = Selector< - State, - Result, - [Props, ...any] -> - -/** - * A generated selector that is assumed to have one additional argument. - * - * @public - */ -export type OutputParametricSelector = ParametricSelector< - State, - Props, - Result -> & - OutputSelectorFields - /** * A standard function returning true if two values are considered equal. *