feat: fix all cases for h and options type inference

This commit is contained in:
Evan You
2019-09-05 18:48:49 -04:00
parent 6c7cbb0dc9
commit 94a05561f8
9 changed files with 83 additions and 85 deletions

View File

@@ -11,10 +11,10 @@ import { Ref } from '@vue/reactivity'
import { RawSlots } from './componentSlots'
import {
FunctionalComponent,
ComponentOptions,
ComponentOptionsWithoutProps,
ComponentOptionsWithArrayProps,
ComponentOptionsWithProps
ComponentOptionsWithProps,
ComponentOptions
} from './component'
import { ExtractPropTypes } from './componentProps'
@@ -57,7 +57,7 @@ interface Props {
[Symbol.iterator]?: never
}
type Children = string | number | VNodeChildren
type Children = string | number | boolean | VNodeChildren | (() => any)
// fake constructor type returned from `createComponent`
interface Constructor<P = any> {