types: improve h() and TSX type inference
- Should allow extraneous props as attrs in TSX - Should check props when using constructor type returned by createComponent() in h()
This commit is contained in:
@@ -65,6 +65,10 @@ export interface ComponentOptionsBase<
|
||||
components?: Record<string, Component>
|
||||
directives?: Record<string, Directive>
|
||||
inheritAttrs?: boolean
|
||||
|
||||
// type-only differentiator to separate OptionWihtoutProps from a constructor
|
||||
// type returned by createComponent()
|
||||
__isConstructor?: never
|
||||
}
|
||||
|
||||
export type ComponentOptionsWithoutProps<
|
||||
|
||||
Reference in New Issue
Block a user