From: David Warner Date: Fri, 25 Mar 2022 18:30:20 +0000 (-0400) Subject: docs: typo (#1169) X-Git-Tag: @pinia/testing@0.0.11~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b5c3592131ad1193038e7a1e05e3041fb6bfae6;p=thirdparty%2Fvuejs%2Fpinia.git docs: typo (#1169) --- diff --git a/packages/docs/api/interfaces/pinia._StoreWithState.md b/packages/docs/api/interfaces/pinia._StoreWithState.md index cedd7548..6871b574 100644 --- a/packages/docs/api/interfaces/pinia._StoreWithState.md +++ b/packages/docs/api/interfaces/pinia._StoreWithState.md @@ -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 diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index 5471281e..65d5dec9 100644 --- a/packages/pinia/src/types.ts +++ b/packages/pinia/src/types.ts @@ -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