Browse Source

docs: fix typos in comments in the code (#14253)

Bruno 3 months ago
parent
commit
aac7e18989

+ 1 - 1
packages/compiler-sfc/src/script/defineProps.ts

@@ -369,7 +369,7 @@ function genDestructuredDefaultValue(
   }
 }
 
-// non-comprehensive, best-effort type infernece for a runtime value
+// non-comprehensive, best-effort type inference for a runtime value
 // this is used to catch default value / type declaration mismatches
 // when using props destructure.
 function inferValueType(node: Node): string | undefined {

+ 1 - 1
packages/compiler-sfc/src/script/utils.ts

@@ -109,7 +109,7 @@ function toFileNameLowerCase(x: string) {
 
 /**
  * We need `getCanonicalFileName` when creating ts module resolution cache,
- * but TS does not expose it directly. This implementation is repllicated from
+ * but TS does not expose it directly. This implementation is replicated from
  * the TS source code.
  */
 export function createGetCanonicalFileName(