From: Lioness100 Date: Sat, 10 Jun 2023 09:17:41 +0000 (-0400) Subject: chore: fix typo (#7693) X-Git-Tag: v3.3.5~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6277cb994acecf56f5f0745f5e2dac9785a34957;p=thirdparty%2Fvuejs%2Fcore.git chore: fix typo (#7693) --- diff --git a/packages/runtime-core/__tests__/apiWatch.spec.ts b/packages/runtime-core/__tests__/apiWatch.spec.ts index 21aae34102..f24ce80b9d 100644 --- a/packages/runtime-core/__tests__/apiWatch.spec.ts +++ b/packages/runtime-core/__tests__/apiWatch.spec.ts @@ -1000,7 +1000,7 @@ describe('api: watch', () => { }, mounted() { // this call runs while Comp is currentInstance, but - // the effect for this `$watch` should nontheless be registered with Child + // the effect for this `$watch` should nonetheless be registered with Child this.comp!.$watch( () => this.show, () => void 0 @@ -1171,7 +1171,7 @@ describe('api: watch', () => { expect(instance!.scope.effects.length).toBe(1) }) - test('watchEffect should keep running if created in a detatched scope', async () => { + test('watchEffect should keep running if created in a detached scope', async () => { const trigger = ref(0) let countWE = 0 let countW = 0 diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index e68a8560bf..57a53a39b7 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -256,7 +256,7 @@ export interface ComponentInternalInstance { */ ssrRender?: Function | null /** - * Object containing values this component provides for its descendents + * Object containing values this component provides for its descendants * @internal */ provides: Data diff --git a/packages/runtime-dom/__tests__/customElement.spec.ts b/packages/runtime-dom/__tests__/customElement.spec.ts index da3d1a3a55..6ccf02c4fa 100644 --- a/packages/runtime-dom/__tests__/customElement.spec.ts +++ b/packages/runtime-dom/__tests__/customElement.spec.ts @@ -322,7 +322,7 @@ describe('defineCustomElement', () => { emit('my-click', 1) }, onMousedown: () => { - emit('myEvent', 1) // validate hypenization + emit('myEvent', 1) // validate hyphenation } }) } diff --git a/packages/server-renderer/__tests__/ssrScopeId.spec.ts b/packages/server-renderer/__tests__/ssrScopeId.spec.ts index 3091153e1e..2637fd7840 100644 --- a/packages/server-renderer/__tests__/ssrScopeId.spec.ts +++ b/packages/server-renderer/__tests__/ssrScopeId.spec.ts @@ -156,7 +156,7 @@ describe('ssr: scopedId runtime behavior', () => { }) // #3513 - test('scopeId inheritance across ssr-compiled andn on-ssr compiled parent chain', async () => { + test('scopeId inheritance across ssr-compiled and on-ssr compiled parent chain', async () => { const Child = { ssrRender: (ctx: any, push: any, parent: any, attrs: any) => { push(``) diff --git a/packages/shared/src/general.ts b/packages/shared/src/general.ts index 6efaf52524..b36ec89c65 100644 --- a/packages/shared/src/general.ts +++ b/packages/shared/src/general.ts @@ -149,7 +149,7 @@ export const looseToNumber = (val: any): any => { } /** - * Only conerces number-like strings + * Only concerns number-like strings * "123-foo" will be returned as-is */ export const toNumber = (val: any): any => { diff --git a/rollup.dts.config.js b/rollup.dts.config.js index 961e8ee2a9..f2d33d0e8f 100644 --- a/rollup.dts.config.js +++ b/rollup.dts.config.js @@ -46,7 +46,7 @@ export default targetPackages.map(pkg => { * and remove them from the big export {} declaration * otherwise it gets weird in vitepress `defineComponent` call with * "the inferred type cannot be named without a reference" - * 3. Append custom agumentations (jsx, macros) + * 3. Append custom augmentations (jsx, macros) * @returns {import('rollup').Plugin} */ function patchTypes(pkg) { diff --git a/scripts/const-enum.js b/scripts/const-enum.js index a12ac2cecd..0e262285f1 100644 --- a/scripts/const-enum.js +++ b/scripts/const-enum.js @@ -189,7 +189,7 @@ export function constEnum() { ) // 3. during transform: - // 3.1 files w/ const enum declaration: remove delcaration + // 3.1 files w/ const enum declaration: remove declaration // 3.2 files using const enum: inject into esbuild define /** * @type {import('rollup').Plugin}