Skip to content

Commit 9b31705

Browse files
authored
docs: fix typo (#1281)
1 parent e5843ac commit 9b31705

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/pinia/src/mapHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export let mapStoreSuffix = 'Store'
5959
/**
6060
* Changes the suffix added by `mapStores()`. Can be set to an empty string.
6161
* Defaults to `"Store"`. Make sure to extend the MapStoresCustomization
62-
* interface if you need are using TypeScript.
62+
* interface if you are using TypeScript.
6363
*
6464
* @param suffix - new suffix
6565
*/

packages/pinia/src/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function createSetupStore<
239239
let debuggerEvents: DebuggerEvent[] | DebuggerEvent
240240
const initialState = pinia.state.value[$id] as UnwrapRef<S> | undefined
241241

242-
// avoid setting the state for option stores are it is set
242+
// avoid setting the state for option stores if it is set
243243
// by the setup
244244
if (!isOptionsStore && !initialState && (!__DEV__ || !hot)) {
245245
/* istanbul ignore if */
@@ -304,7 +304,7 @@ function createSetupStore<
304304
const $reset = __DEV__
305305
? () => {
306306
throw new Error(
307-
`🍍: Store "${$id}" is build using the setup syntax and does not implement $reset().`
307+
`🍍: Store "${$id}" is built using the setup syntax and does not implement $reset().`
308308
)
309309
}
310310
: noop

packages/pinia/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export interface _StoreWithState<
361361

362362
/**
363363
* Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
364-
* than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
364+
* that when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
365365
* component gets unmounted unless `detached` is set to true.
366366
*
367367
* @param callback - callback passed to the watcher

0 commit comments

Comments
 (0)