Skip to content

Commit

Permalink
Fix typos inside docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jan 4, 2024
1 parent 25544d7 commit 3e39fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/createStructuredSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export type RootStateSelectors<RootState = any> = {
*
* @since 5.0.0
* @public
* @deprecated Please use {@linkcode StructuredSelectorCreator.withTypes createStructuredSelector.withTypes<RootState>()} instead.
*/
export type TypedStructuredSelectorCreator<RootState = any> =
/**
Expand Down
4 changes: 2 additions & 2 deletions website/docs/api/createStructuredSelector.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ const structuredSelector = createStructuredAppSelector({

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

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

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.

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

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

Expand Down

0 comments on commit 3e39fcc

Please sign in to comment.