* Changed comments for better readability
* Update packages/pinia/src/types.ts
---------
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
* 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