From 9b31705d91c22649345f4c1aa875e2fe4eca163e Mon Sep 17 00:00:00 2001 From: lazzzis Date: Mon, 9 May 2022 00:58:52 -0700 Subject: [PATCH] docs: fix typo (#1281) --- packages/pinia/src/mapHelpers.ts | 2 +- packages/pinia/src/store.ts | 4 ++-- packages/pinia/src/types.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pinia/src/mapHelpers.ts b/packages/pinia/src/mapHelpers.ts index b69fc5ce..2b6c7ba3 100644 --- a/packages/pinia/src/mapHelpers.ts +++ b/packages/pinia/src/mapHelpers.ts @@ -59,7 +59,7 @@ export let mapStoreSuffix = 'Store' /** * Changes the suffix added by `mapStores()`. Can be set to an empty string. * Defaults to `"Store"`. Make sure to extend the MapStoresCustomization - * interface if you need are using TypeScript. + * interface if you are using TypeScript. * * @param suffix - new suffix */ diff --git a/packages/pinia/src/store.ts b/packages/pinia/src/store.ts index d8631f46..8985c537 100644 --- a/packages/pinia/src/store.ts +++ b/packages/pinia/src/store.ts @@ -239,7 +239,7 @@ function createSetupStore< let debuggerEvents: DebuggerEvent[] | DebuggerEvent const initialState = pinia.state.value[$id] as UnwrapRef | undefined - // avoid setting the state for option stores are it is set + // avoid setting the state for option stores if it is set // by the setup if (!isOptionsStore && !initialState && (!__DEV__ || !hot)) { /* istanbul ignore if */ @@ -304,7 +304,7 @@ function createSetupStore< const $reset = __DEV__ ? () => { throw new Error( - `🍍: Store "${$id}" is build using the setup syntax and does not implement $reset().` + `🍍: Store "${$id}" is built using the setup syntax and does not implement $reset().` ) } : noop diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index 65d5dec9..36592cca 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 cleaned up when the + * that 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 -- 2.47.2