chore: fix typos (#1090)

This commit is contained in:
HiiTea
2020-05-01 21:42:58 +08:00
committed by GitHub
parent a6a939f5e0
commit 22717772dd
25 changed files with 42 additions and 42 deletions

View File

@@ -14,7 +14,7 @@ import { VNodeProps } from './vnode'
// defineComponent is a utility that is primarily used for type inference
// when declaring components. Type inference is provided in the component
// options (provided as the argument). The returned value has artifical types
// options (provided as the argument). The returned value has artificial types
// for TSX / manual render function / IDE support.
// overload 1: direct setup function
@@ -83,7 +83,7 @@ export function defineComponent<
EE
>
): {
// array props technically doesn't place any contraints on props in TSX
// array props technically doesn't place any constraints on props in TSX
new (): ComponentPublicInstance<VNodeProps, RawBindings, D, C, M, E>
} & ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, E, EE>

View File

@@ -48,7 +48,7 @@ type PropConstructor<T = any> =
| PropMethod<T>
type PropMethod<T> = T extends (...args: any) => any // if is function with args
? { new (): T; (): T; readonly proptotype: Function } // Create Function like contructor
? { new (): T; (): T; readonly proptotype: Function } // Create Function like constructor
: never
type RequiredKeys<T, MakeDefaultRequired> = {

View File

@@ -75,7 +75,7 @@ export interface TransitionState {
export interface TransitionElement {
// in persisted mode (e.g. v-show), the same element is toggled, so the
// pending enter/leave callbacks may need to cancalled if the state is toggled
// pending enter/leave callbacks may need to be cancelled if the state is toggled
// before it finishes.
_enterCb?: PendingCallback
_leaveCb?: PendingCallback

View File

@@ -432,7 +432,7 @@ function createSuspenseBoundary(
handleSetupResult(instance, asyncSetupResult, false)
if (hydratedEl) {
// vnode may have been replaced if an update happened before the
// async dep is reoslved.
// async dep is resolved.
vnode.el = hydratedEl
}
setupRenderEffect(