From: Soheil Nazari [CHECK24] <113988347+s0h311@users.noreply.github.com> Date: Sun, 27 Oct 2024 10:22:28 +0000 (+0100) Subject: docs: fix typos (#2808) X-Git-Tag: @pinia/nuxt@0.6.0~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84c935e37575feb57accc78421e7ed1c94862d32;p=thirdparty%2Fvuejs%2Fpinia.git docs: fix typos (#2808) --- diff --git a/packages/docs/cookbook/testing.md b/packages/docs/cookbook/testing.md index 657ae7b4..bc7300b6 100644 --- a/packages/docs/cookbook/testing.md +++ b/packages/docs/cookbook/testing.md @@ -168,7 +168,7 @@ expect(store.someAction).toHaveBeenCalledTimes(1) ### Mocking the returned value of an action -Actions are automatically spied but type-wise, they are still the regular actions. In order to get the correct type, we must implement a custom type-wrapper that is applies the `Mock` type to each action. **This type depends on the testing framework you are using**. Here is an example with Vitest: +Actions are automatically spied but type-wise, they are still the regular actions. In order to get the correct type, we must implement a custom type-wrapper that applies the `Mock` type to each action. **This type depends on the testing framework you are using**. Here is an example with Vitest: ```ts import type { Mock } from 'vitest' diff --git a/packages/docs/core-concepts/plugins.md b/packages/docs/core-concepts/plugins.md index f784ec0d..b7dc4697 100644 --- a/packages/docs/core-concepts/plugins.md +++ b/packages/docs/core-concepts/plugins.md @@ -112,7 +112,7 @@ This is why you can access all computed properties without `.value` and why they If you want to add new state properties to a store or properties that are meant to be used during hydration, **you will have to add it in two places**: - On the `store` so you can access it with `store.myState` -- On `store.$state` so it can be used in devtools and, **be serialized during SSR**. +- On `store.$state` so it can be used in devtools and **be serialized during SSR**. On top of that, you will certainly have to use a `ref()` (or other reactive API) in order to share the value across different accesses: diff --git a/packages/docs/introduction.md b/packages/docs/introduction.md index 62eb986b..27c69652 100644 --- a/packages/docs/introduction.md +++ b/packages/docs/introduction.md @@ -24,9 +24,9 @@ Pinia is a store library for Vue, it allows you to share a state across componen - Testing utilities - Plugins: extend Pinia features with plugins - Proper TypeScript support or **autocompletion** for JS users -- Server Side Rendering Support +- Server Side Rendering support - Devtools support - - A timeline to track actions, mutations + - A timeline to track actions and mutations - Stores appear in components where they are used - Time travel and easier debugging - Hot module replacement diff --git a/packages/docs/zh/cookbook/testing.md b/packages/docs/zh/cookbook/testing.md index 66dfe218..745f9296 100644 --- a/packages/docs/zh/cookbook/testing.md +++ b/packages/docs/zh/cookbook/testing.md @@ -175,7 +175,7 @@ expect(store.someAction).toHaveBeenCalledTimes(1) ### Mocking the returned value of an action -Actions are automatically spied but type-wise, they are still the regular actions. In order to get the correct type, we must implement a custom type-wrapper that is applies the `Mock` type to each action. **This type depends on the testing framework you are using**. Here is an example with Vitest: +Actions are automatically spied but type-wise, they are still the regular actions. In order to get the correct type, we must implement a custom type-wrapper that applies the `Mock` type to each action. **This type depends on the testing framework you are using**. Here is an example with Vitest: ```ts import type { Mock } from 'vitest'