types: improve h inference + infer required props without need for as const

This commit is contained in:
Evan You
2019-11-01 17:06:19 -04:00
parent b5c501c0b4
commit 7b7b8ef221
4 changed files with 7 additions and 18 deletions

View File

@@ -67,8 +67,8 @@ export interface ComponentOptionsBase<
inheritAttrs?: boolean
// type-only differentiator to separate OptionWihtoutProps from a constructor
// type returned by createComponent()
__isConstructor?: never
// type returned by createComponent() or FunctionalComponent
call?: never
}
export type ComponentOptionsWithoutProps<