]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: fix typo (#1281)
authorlazzzis <lazzzis@outlook.com>
Mon, 9 May 2022 07:58:52 +0000 (00:58 -0700)
committerGitHub <noreply@github.com>
Mon, 9 May 2022 07:58:52 +0000 (09:58 +0200)
packages/pinia/src/mapHelpers.ts
packages/pinia/src/store.ts
packages/pinia/src/types.ts

index b69fc5ce47a81fd375fb1bb84ba942c33e6ec1b7..2b6c7ba3760b77e91b8fcd79322c1fc4d05014af 100644 (file)
@@ -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
  */
index d8631f463296266be35be326db28e90be3725edf..8985c537b02b366690aae5f848a29a3ccf70323f 100644 (file)
@@ -239,7 +239,7 @@ function createSetupStore<
   let debuggerEvents: DebuggerEvent[] | DebuggerEvent
   const initialState = pinia.state.value[$id] as UnwrapRef<S> | 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
index 65d5dec9416b9bcde499c3ee638893cb0697ddd8..36592ccae3a2a968bb64963ea6f2c5e9ce59db01 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 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