Skip to content

Commit 3e39fcc

Browse files
committed
Fix typos inside docs
1 parent 25544d7 commit 3e39fcc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/createStructuredSelector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export type RootStateSelectors<RootState = any> = {
7777
*
7878
* @since 5.0.0
7979
* @public
80+
* @deprecated Please use {@linkcode StructuredSelectorCreator.withTypes createStructuredSelector.withTypes<RootState>()} instead.
8081
*/
8182
export type TypedStructuredSelectorCreator<RootState = any> =
8283
/**

website/docs/api/createStructuredSelector.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,11 @@ const structuredSelector = createStructuredAppSelector({
303303

304304
{/* END: createStructuredSelector/createStructuredAppSelector.ts */}
305305

306-
## Defining a Pre-Typed <InternalLinks.CreateStructuredSelector>`createSelector`</InternalLinks.CreateStructuredSelector>
306+
## Defining a Pre-Typed <InternalLinks.CreateStructuredSelector>`createStructuredSelector`</InternalLinks.CreateStructuredSelector>
307307

308308
As of Reselect 5.0.2, you can create a "pre-typed" version of <InternalLinks.CreateStructuredSelector /> where the `state` type is predefined. This allows you to set the `state` type once, eliminating the need to specify it with every <InternalLinks.CreateStructuredSelector /> call.
309309

310-
To do this, you can call `CreateStructuredSelector.withTypes<StateType>()`:
310+
To do this, you can call `createStructuredSelector.withTypes<StateType>()`:
311311

312312
{/* START: createStructuredSelector/withTypes.ts */}
313313

0 commit comments

Comments
 (0)