Skip to content

Commit

Permalink
Merge pull request #2323 from aroyan/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed May 13, 2022
2 parents 2c6fab0 + 20f1fb7 commit 69afddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/createAction.mdx
Expand Up @@ -149,7 +149,7 @@ This has different uses:
### As a TypeScript Type Guard
This `match` method is a [TypeScript type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards) and can be used to discriminate the `payload` type of an action.
This `match` method is a [TypeScript type guard](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) and can be used to discriminate the `payload` type of an action.
This behavior can be particularly useful when used in custom middlewares, where manual casts might be neccessary otherwise.
Expand Down

0 comments on commit 69afddd

Please sign in to comment.