Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isAction type predicate #4620

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Add isAction type predicate #4620

merged 3 commits into from
Nov 20, 2023

Conversation

EskiMojo14
Copy link
Contributor

@EskiMojo14 EskiMojo14 commented Nov 20, 2023

This is already exported from RTK, but seems useful to move to core as the middleware typing changes now (correctly) treat action as unknown - exporting this provides an "official" way to check that a value is an action object (with the same restrictions as the final reducers - plain object with type string)

Copy link

codesandbox-ci bot commented Nov 20, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d44a074:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants