]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: typo (#1169)
authorDavid Warner <dwarner@campfoursoftware.com>
Fri, 25 Mar 2022 18:30:20 +0000 (14:30 -0400)
committerGitHub <noreply@github.com>
Fri, 25 Mar 2022 18:30:20 +0000 (19:30 +0100)
packages/docs/api/interfaces/pinia._StoreWithState.md
packages/pinia/src/types.ts

index cedd75487f31de56849083f09f03d61d63ef3f27..6871b5749afe82566433dfc18f07c4cef2ca3ff6 100644 (file)
@@ -90,7 +90,7 @@ On top of these, it receives two functions that allow setting up a callback
 once the action finishes or when it fails.
 
 It also returns a function to remove the callback. Note than when calling
-`store.$onAction()` inside of a component, it will be automatically cleanup
+`store.$onAction()` inside of a component, it will be automatically cleaned
 up when the component gets unmounted unless `detached` is set to true.
 
 **`example`**
@@ -136,7 +136,7 @@ On top of these, it receives two functions that allow setting up a callback
 once the action finishes or when it fails.
 
 It also returns a function to remove the callback. Note than when calling
-`store.$onAction()` inside of a component, it will be automatically cleanup
+`store.$onAction()` inside of a component, it will be automatically cleaned
 up when the component gets unmounted unless `detached` is set to true.
 
 **`example`**
@@ -238,7 +238,7 @@ ___
 ▸ **$subscribe**(`callback`, `options?`): () => `void`
 
 Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
-than when calling `store.$subscribe()` inside of a component, it will be automatically cleanup up when the
+than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
 component gets unmounted unless `detached` is set to true.
 
 #### Parameters
@@ -257,7 +257,7 @@ function that removes the watcher
 ▸ (): `void`
 
 Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
-than when calling `store.$subscribe()` inside of a component, it will be automatically cleanup up when the
+than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
 component gets unmounted unless `detached` is set to true.
 
 ##### Returns
index 5471281eed24485972d79526c8d3fd72b4df8fe4..65d5dec9416b9bcde499c3ee638893cb0697ddd8 100644 (file)
@@ -361,7 +361,7 @@ export interface _StoreWithState<
 
   /**
    * Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
-   * than when calling `store.$subscribe()` inside of a component, it will be automatically cleanup up when the
+   * than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
    * component gets unmounted unless `detached` is set to true.
    *
    * @param callback - callback passed to the watcher
@@ -386,7 +386,7 @@ export interface _StoreWithState<
    * once the action finishes or when it fails.
    *
    * It also returns a function to remove the callback. Note than when calling
-   * `store.$onAction()` inside of a component, it will be automatically cleanup
+   * `store.$onAction()` inside of a component, it will be automatically cleaned
    * up when the component gets unmounted unless `detached` is set to true.
    *
    * @example