]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: minor changes (#2273)
authorAbhay Chauhan <60472462+abhay-111@users.noreply.github.com>
Sun, 25 Jun 2023 14:25:40 +0000 (19:55 +0530)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 14:25:40 +0000 (16:25 +0200)
* Changed comments for better readability

* Update packages/pinia/src/types.ts

---------

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/pinia/src/types.ts

index 568695d870430d87d22cd0b424c06fd16f50349e..dbdfb098e3caf537bc23f9bbca2b842f9ac9ed87 100644 (file)
@@ -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