From 995cba84a26cc0fda57fcca4a05d6e87e22b9ec7 Mon Sep 17 00:00:00 2001 From: ordago Date: Wed, 25 Oct 2023 01:36:04 +0100 Subject: [PATCH] docs: fix typos (#23921) --- docs/1.getting-started/12.upgrade.md | 2 +- docs/2.guide/1.concepts/4.server-engine.md | 2 +- docs/2.guide/2.directory-structure/1.pages.md | 2 +- docs/3.api/5.kit/3.compatibility.md | 6 +++--- docs/5.community/6.roadmap.md | 2 +- docs/7.migration/6.pages-and-layouts.md | 2 +- test/fixtures/basic-types/types.ts | 2 +- test/fixtures/basic/pages/useAsyncData/refresh.vue | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/1.getting-started/12.upgrade.md b/docs/1.getting-started/12.upgrade.md index 99ddd7195c..8d6a28477c 100644 --- a/docs/1.getting-started/12.upgrade.md +++ b/docs/1.getting-started/12.upgrade.md @@ -1,6 +1,6 @@ --- title: Upgrade Guide -description: 'Learn how to upgrade to the lastest Nuxt version.' +description: 'Learn how to upgrade to the latest Nuxt version.' navigation.icon: i-ph-arrow-circle-up-duotone --- diff --git a/docs/2.guide/1.concepts/4.server-engine.md b/docs/2.guide/1.concepts/4.server-engine.md index 118f558033..a92fab424b 100644 --- a/docs/2.guide/1.concepts/4.server-engine.md +++ b/docs/2.guide/1.concepts/4.server-engine.md @@ -58,5 +58,5 @@ Nuxt 3 generates this dist when running `nuxt build` into a [`.output`](/docs/gu The output contains runtime code to run your Nuxt server in any environment (including experimental browser service workers!) and serve your static files, making it a true hybrid framework for the JAMstack. In addition, Nuxt implements a native storage layer, supporting multi-source drivers and local assets. ::read-more{color="gray" icon="i-simple-icons-github" to="https://github.com/unjs/nitro" target="_blank"} -Read more anout Nitro engine on GitHub. +Read more about Nitro engine on GitHub. :: diff --git a/docs/2.guide/2.directory-structure/1.pages.md b/docs/2.guide/2.directory-structure/1.pages.md index c7ca936450..00166886d1 100644 --- a/docs/2.guide/2.directory-structure/1.pages.md +++ b/docs/2.guide/2.directory-structure/1.pages.md @@ -6,7 +6,7 @@ navigation.icon: i-ph-folder-duotone --- ::callout -To reduce your application's bundle size, this directory is **optional**, meaning that [`vue-router`](https://router.vuejs.org) won't be included if you only use [`app.vue`](/docs/guide/directory-structure/app). To force the pages sytem, set `pages: true` in `nuxt.config` or have a [`app/router.options.ts`](/docs/guide/directory-structure/pages#router-options). +To reduce your application's bundle size, this directory is **optional**, meaning that [`vue-router`](https://router.vuejs.org) won't be included if you only use [`app.vue`](/docs/guide/directory-structure/app). To force the pages system, set `pages: true` in `nuxt.config` or have a [`app/router.options.ts`](/docs/guide/directory-structure/pages#router-options). :: ## Usage diff --git a/docs/3.api/5.kit/3.compatibility.md b/docs/3.api/5.kit/3.compatibility.md index d958f367a3..20eebebd35 100644 --- a/docs/3.api/5.kit/3.compatibility.md +++ b/docs/3.api/5.kit/3.compatibility.md @@ -51,7 +51,7 @@ Constraints to check for. It accepts the following properties: **Type**: `string` - Nuxt version in semver format. Versions may be defined in Node.js way, for exmaple: `>=2.15.0 <3.0.0`. + Nuxt version in semver format. Versions may be defined in Node.js way, for example: `>=2.15.0 <3.0.0`. - `bridge` (optional) @@ -99,7 +99,7 @@ Constraints to check for. It accepts the following properties: **Type**: `string` - Nuxt version in semver format. Versions may be defined in Node.js way, for exmaple: `>=2.15.0 <3.0.0`. + Nuxt version in semver format. Versions may be defined in Node.js way, for example: `>=2.15.0 <3.0.0`. - `bridge` (optional) @@ -147,7 +147,7 @@ Constraints to check for. It accepts the following properties: **Type**: `string` - Nuxt version in semver format. Versions may be defined in Node.js way, for exmaple: `>=2.15.0 <3.0.0`. + Nuxt version in semver format. Versions may be defined in Node.js way, for example: `>=2.15.0 <3.0.0`. - `bridge` (optional) diff --git a/docs/5.community/6.roadmap.md b/docs/5.community/6.roadmap.md index 0e32b8b7a5..95739526e2 100644 --- a/docs/5.community/6.roadmap.md +++ b/docs/5.community/6.roadmap.md @@ -35,7 +35,7 @@ DevTools | 2023 | - Scripts | 2023 | [nuxt/nuxt#22016](https://github.com/nuxt/nuxt/discussions/22016) | Easy 3rd party script management. Fonts | 2023 | [nuxt/nuxt#22014](https://github.com/nuxt/nuxt/discussions/22014) | Allow developers to easily configure fonts in their Nuxt apps. Assets | 2023 | [nuxt/nuxt#22012](https://github.com/nuxt/nuxt/discussions/22012) | Allow developers and modules to handle loading third-party assets. -A11y | 2023 | [nuxt/nuxt#23255](https://github.com/nuxt/nuxt/issues/23255) | Accessibility hinting and utilties +A11y | 2023 | [nuxt/nuxt#23255](https://github.com/nuxt/nuxt/issues/23255) | Accessibility hinting and utilities Translations | - | [nuxt/translations#4](https://github.com/nuxt/translations/discussions/4) ([request access](https://github.com/nuxt/nuxt/discussions/16054)) | A collaborative project for a stable translation process for Nuxt 3 docs. Currently pending for ideas and documentation tooling support (content v2 with remote sources). ## Core Modules diff --git a/docs/7.migration/6.pages-and-layouts.md b/docs/7.migration/6.pages-and-layouts.md index 75d850c192..e41a39904f 100644 --- a/docs/7.migration/6.pages-and-layouts.md +++ b/docs/7.migration/6.pages-and-layouts.md @@ -192,7 +192,7 @@ Most of the syntax and functionality are the same for the global [NuxtLink](/doc When migrating from Nuxt 2 to Nuxt 3, you will have to update how you programmatically navigate your users. In Nuxt 2, you had access to the underlying Vue Router with `this.$router`. In Nuxt 3, you can use the `navigateTo()` utility method which allows you to pass a route and parameters to Vue Router. ::callout{color="amber" icon="i-ph-warning-duotone"} -Ensure to always `await` on [`navigateTo`](/docs/api/utils/navigate-to) or chain it's result by returning from functions. +Ensure to always `await` on [`navigateTo`](/docs/api/utils/navigate-to) or chain its result by returning from functions. :: ::code-group diff --git a/test/fixtures/basic-types/types.ts b/test/fixtures/basic-types/types.ts index 3f692400c1..7610bfe39f 100644 --- a/test/fixtures/basic-types/types.ts +++ b/test/fixtures/basic-types/types.ts @@ -346,7 +346,7 @@ describe('composables', () => { expectTypeOf(useAsyncData(() => $fetch('/test'), { default: () => 'test' }).data).toEqualTypeOf>() expectTypeOf(useLazyAsyncData(() => $fetch('/test'), { default: () => 'test' }).data).toEqualTypeOf>() - // transform must match the explicit generic because of typescript limiations microsoft/TypeScript#14400 + // transform must match the explicit generic because of typescript limitations microsoft/TypeScript#14400 expectTypeOf(useFetch('/test', { transform: () => 'transformed' }).data).toEqualTypeOf>() expectTypeOf(useLazyFetch('/test', { transform: () => 'transformed' }).data).toEqualTypeOf>() expectTypeOf(useAsyncData(() => $fetch('/test'), { transform: () => 'transformed' }).data).toEqualTypeOf>() diff --git a/test/fixtures/basic/pages/useAsyncData/refresh.vue b/test/fixtures/basic/pages/useAsyncData/refresh.vue index c4cf1021d6..12ec2475aa 100644 --- a/test/fixtures/basic/pages/useAsyncData/refresh.vue +++ b/test/fixtures/basic/pages/useAsyncData/refresh.vue @@ -29,7 +29,7 @@ initial = data.value!.count await refresh2() if (data.value!.count !== initial + 1) { - throw new Error('data2 refresh not syncronised?') + throw new Error('data2 refresh not synchronised?') } if (data.value!.count !== data2.value!.count) {