From: Nitya Jain Date: Fri, 5 Dec 2025 21:54:34 +0000 (+0530) Subject: docs: fix typos in types and documentation (#3080) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fvuejs%2Fpinia.git docs: fix typos in types and documentation (#3080) --- diff --git a/packages/docs/cookbook/testing.md b/packages/docs/cookbook/testing.md index 1a78fdf0..8e5410cd 100644 --- a/packages/docs/cookbook/testing.md +++ b/packages/docs/cookbook/testing.md @@ -286,7 +286,7 @@ const store = mockedStore(useSomeStore) store.someAction.mockResolvedValue('some value') ``` -If you are interesting in learning more tricks like this, you should check out the Testing lessons on [Mastering Pinia](https://masteringpinia.com/lessons/exercise-mocking-stores-introduction). +If you are interested in learning more tricks like this, you should check out the Testing lessons on [Mastering Pinia](https://masteringpinia.com/lessons/exercise-mocking-stores-introduction). ### Specifying the createSpy function diff --git a/packages/docs/core-concepts/actions.md b/packages/docs/core-concepts/actions.md index a15b9218..a4b975a3 100644 --- a/packages/docs/core-concepts/actions.md +++ b/packages/docs/core-concepts/actions.md @@ -192,7 +192,7 @@ const unsubscribe = someStore.$onAction( console.log(`Start "${name}" with params [${args.join(', ')}].`) // this will trigger if the action succeeds and after it has fully run. - // it waits for any returned promised + // it waits for any returned promise after((result) => { console.log( `Finished "${name}" after ${ diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index 97651e99..0c99ecbc 100644 --- a/packages/pinia/src/types.ts +++ b/packages/pinia/src/types.ts @@ -366,7 +366,7 @@ export interface _StoreWithState< * 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 + * It also returns a function to remove the callback. Note that when calling * `store.$onAction()` inside of a component, it will be automatically cleaned * up when the component gets unmounted unless `detached` is set to true. *