From 3e39fccce5d17072609da4dc8845cd6dad9b0868 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Wed, 3 Jan 2024 20:28:58 -0600 Subject: [PATCH] Fix typos inside docs --- src/createStructuredSelector.ts | 1 + website/docs/api/createStructuredSelector.mdx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/createStructuredSelector.ts b/src/createStructuredSelector.ts index 42f75e283..6e01167b4 100644 --- a/src/createStructuredSelector.ts +++ b/src/createStructuredSelector.ts @@ -77,6 +77,7 @@ export type RootStateSelectors = { * * @since 5.0.0 * @public + * @deprecated Please use {@linkcode StructuredSelectorCreator.withTypes createStructuredSelector.withTypes()} instead. */ export type TypedStructuredSelectorCreator = /** diff --git a/website/docs/api/createStructuredSelector.mdx b/website/docs/api/createStructuredSelector.mdx index 4a8c521a3..042b876a1 100644 --- a/website/docs/api/createStructuredSelector.mdx +++ b/website/docs/api/createStructuredSelector.mdx @@ -303,11 +303,11 @@ const structuredSelector = createStructuredAppSelector({ {/* END: createStructuredSelector/createStructuredAppSelector.ts */} -## Defining a Pre-Typed `createSelector` +## Defining a Pre-Typed `createStructuredSelector` As of Reselect 5.0.2, you can create a "pre-typed" version of where the `state` type is predefined. This allows you to set the `state` type once, eliminating the need to specify it with every call. -To do this, you can call `CreateStructuredSelector.withTypes()`: +To do this, you can call `createStructuredSelector.withTypes()`: {/* START: createStructuredSelector/withTypes.ts */}