Skip to content

Commit 1754832

Browse files
authored
Link to new typescript docs of type predicates (#3411)
1 parent bfc2e50 commit 1754832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/mapBuilders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface ActionReducerMapBuilder<State> {
4646
* If multiple matcher reducers match, all of them will be executed in the order
4747
* they were defined in - even if a case reducer already matched.
4848
* All calls to `builder.addMatcher` must come after any calls to `builder.addCase` and before any calls to `builder.addDefaultCase`.
49-
* @param matcher - A matcher function. In TypeScript, this should be a [type predicate](https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates)
49+
* @param matcher - A matcher function. In TypeScript, this should be a [type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates)
5050
* function
5151
* @param reducer - The actual case reducer function.
5252
*

0 commit comments

Comments
 (0)