From 4b5c3592131ad1193038e7a1e05e3041fb6bfae6 Mon Sep 17 00:00:00 2001 From: David Warner Date: Fri, 25 Mar 2022 14:30:20 -0400 Subject: [PATCH] docs: typo (#1169) --- packages/docs/api/interfaces/pinia._StoreWithState.md | 8 ++++---- packages/pinia/src/types.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.47.2