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

Correct all actions calls #1891

Open
xgo-work opened this issue Feb 24, 2023 · 0 comments
Open

Correct all actions calls #1891

xgo-work opened this issue Feb 24, 2023 · 0 comments
Assignees

Comments

@xgo-work
Copy link
Contributor

xgo-work commented Feb 24, 2023

Most actions are typed as void but return Promises with results.

createEditingAction should be used to infer type correctly

export function createEditingAction<Payload, ReturnType>(

see this commit for a usage example

e7f0b26

To track them, either find the usage of EditingThunkResult or remove the default result typing on the type définition

export type EditingThunkResult<R = void> = ThunkAction<

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

No branches or pull requests

2 participants