refactor(createComponent): rename to defineComponent (#549)

This commit is contained in:
Chris Fritz
2019-12-22 10:58:12 -05:00
committed by Evan You
parent 7d2ae08277
commit 1c4cdd841d
18 changed files with 74 additions and 74 deletions

View File

@@ -65,7 +65,7 @@ type RawChildren =
| VNodeChildren
| (() => any)
// fake constructor type returned from `createComponent`
// fake constructor type returned from `defineComponent`
interface Constructor<P = any> {
__isFragment?: never
__isPortal?: never
@@ -130,7 +130,7 @@ export function h<O>(
children?: RawChildren | RawSlots
): VNode
// fake constructor type returned by `createComponent`
// fake constructor type returned by `defineComponent`
export function h(type: Constructor, children?: RawChildren): VNode
export function h<P>(
type: Constructor<P>,