From 9f7c28824765f34fe575aa7b6e9226e09b46af50 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Wed, 15 Nov 2023 06:46:04 -0600 Subject: [PATCH] Remove `ParametricSelector` and `OutputParametricSelector` from type tests. --- typescript_test/test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typescript_test/test.ts b/typescript_test/test.ts index 379768f60..7f674d320 100644 --- a/typescript_test/test.ts +++ b/typescript_test/test.ts @@ -9,7 +9,7 @@ import type { TypedUseSelectorHook } from 'react-redux' import { useSelector } from 'react-redux' import type { GetStateFromSelectors, - ParametricSelector, + Selector, SelectorResultArray, TypedStructuredSelectorCreator } from 'reselect' @@ -142,7 +142,7 @@ function testSelectorAsCombiner() { type Component

= (props: P) => any declare function connect( - selector: ParametricSelector + selector: Selector ): (component: Component

) => Component

function testConnect() { @@ -830,14 +830,14 @@ function testTypedCreateStructuredSelector() { const selectBar = (state: RootState) => state.bar const typedStructuredSelectorCreator: TypedStructuredSelectorCreator = - createStructuredSelector as TypedStructuredSelectorCreator + createStructuredSelector typedStructuredSelectorCreator({ foo: selectFoo, bar: selectBar }) - // @ts-expect-error + // @ts-expect-error Because `bar` is missing. typedStructuredSelectorCreator({ foo: selectFoo })