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 })