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

Changed comments for better readability #2273

Merged
merged 2 commits into from
Jun 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/pinia/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export interface _StoreOnActionListenerContext<

/**
* Sets up a hook if the action fails. Return `false` to catch the error and
* stop it from propagating.
* stops it from propagating.
posva marked this conversation as resolved.
Show resolved Hide resolved
*/
onError: (callback: (error: unknown) => void) => void
}
Expand Down Expand Up @@ -337,7 +337,7 @@ export interface _StoreWithState<
* Sets or arrays and applying an object patch isn't practical, e.g. appending
* to an array. The function passed to `$patch()` **must be synchronous**.
*
* @param stateMutator - function that mutates `state`, cannot be async
* @param stateMutator - function that mutates `state`, cannot be asynchronous
*/
$patch<F extends (state: UnwrapRef<S>) => any>(
// this prevents the user from using `async` which isn't allowed
Expand Down