chore: typo fixes (#1546)

* chore: fix typos in comments/JSDoc.

* chore: fix typo in internal function name.

* chore: fix typos in test comments/descriptions/variable names.
This commit is contained in:
Felix Rilling
2020-07-08 12:32:42 +02:00
committed by GitHub
parent 9b04ea3324
commit 829b35e426
19 changed files with 27 additions and 27 deletions

View File

@@ -121,7 +121,7 @@ export function defineComponent<
EE
>
): ComponentPublicInstanceConstructor<
// array props technically doesn't place any contraints on props in TSX before,
// array props technically doesn't place any constraints on props in TSX before,
// but now we can export array props in TSX
CreateComponentPublicInstance<
Readonly<{ [key in PropNames]?: any }>,

View File

@@ -210,7 +210,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
appContext
} = instance
// let @vue/reatvitiy know it should never observe Vue public instances.
// let @vue/reactivity know it should never observe Vue public instances.
if (key === ReactiveFlags.SKIP) {
return true
}

View File

@@ -38,7 +38,7 @@ export type RawSlots = {
// internal, indicates compiler generated slots
// we use a reserved property instead of a vnode patchFlag because the slots
// object may be directly passed down to a child component in a manual
// render funciton, and the optimization hint need to be on the slot object
// render function, and the optimization hint need to be on the slot object
// itself to be preserved.
_?: 1
}

View File

@@ -80,7 +80,7 @@ export function createHydrationFunctions(
): Node | null => {
const isFragmentStart = isComment(node) && node.data === '['
const onMismatch = () =>
handleMismtach(
handleMismatch(
node,
vnode,
parentComponent,
@@ -397,7 +397,7 @@ export function createHydrationFunctions(
}
}
const handleMismtach = (
const handleMismatch = (
node: Node,
vnode: VNode,
parentComponent: ComponentInternalInstance | null,