]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typo (#7693)
authorLioness100 <jchickmm2@gmail.com>
Sat, 10 Jun 2023 09:17:41 +0000 (05:17 -0400)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2023 09:17:41 +0000 (17:17 +0800)
packages/runtime-core/__tests__/apiWatch.spec.ts
packages/runtime-core/src/component.ts
packages/runtime-dom/__tests__/customElement.spec.ts
packages/server-renderer/__tests__/ssrScopeId.spec.ts
packages/shared/src/general.ts
rollup.dts.config.js
scripts/const-enum.js

index 21aae3410213477377591e85c90ddebff93a028a..f24ce80b9dfba3546455b16917f5eeb35c715ba4 100644 (file)
@@ -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
index e68a8560bffec4ac5bece2d103a6d8190658bda0..57a53a39b762d91a59018a42a86af204ebc1979a 100644 (file)
@@ -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
index da3d1a3a557acb8d09ae9589ecc77e0f214a0cf3..6ccf02c4fa60d7ad6da330d0f1e79d7213eb0749 100644 (file)
@@ -322,7 +322,7 @@ describe('defineCustomElement', () => {
               emit('my-click', 1)
             },
             onMousedown: () => {
-              emit('myEvent', 1) // validate hypenization
+              emit('myEvent', 1) // validate hyphenation
             }
           })
       }
index 3091153e1e62a803ecb4784921197fc334fb581e..2637fd7840231bbdcfa2930fab5d988350c0ef71 100644 (file)
@@ -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(`<div${ssrRenderAttrs(attrs)}></div>`)
index 6efaf52524f771c24c455d4a68c1f8800fb0cf4f..b36ec89c65f3fce0fef6a18f225d18977f0dcf45 100644 (file)
@@ -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 => {
index 961e8ee2a940e39710db697da9af994edb303e42..f2d33d0e8f8a1d7a21f30d55fd023eb9b28672e5 100644 (file)
@@ -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) {
index a12ac2cecd242b2b046f4e09f62be77dfcb9d6e7..0e262285f10ab7d9d83bdd90e8e7170a5df656e0 100644 (file)
@@ -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}