|
@@ -27,7 +27,7 @@ import {
|
|
|
onRenderTriggered
|
|
onRenderTriggered
|
|
|
} from './apiLifecycle'
|
|
} from './apiLifecycle'
|
|
|
import { DebuggerEvent, reactive } from '@vue/reactivity'
|
|
import { DebuggerEvent, reactive } from '@vue/reactivity'
|
|
|
-import { ComponentPropsOptions, ExtractPropTypes } from './componentProps'
|
|
|
|
|
|
|
+import { ComponentObjectPropsOptions, ExtractPropTypes } from './componentProps'
|
|
|
import { Directive } from './directives'
|
|
import { Directive } from './directives'
|
|
|
import { VNodeChild } from './vnode'
|
|
import { VNodeChild } from './vnode'
|
|
|
import { ComponentPublicInstance } from './componentProxy'
|
|
import { ComponentPublicInstance } from './componentProxy'
|
|
@@ -78,8 +78,8 @@ export type ComponentOptionsWithArrayProps<
|
|
|
props: PropNames[]
|
|
props: PropNames[]
|
|
|
} & ThisType<ComponentPublicInstance<Props, RawBindings, D, C, M>>
|
|
} & ThisType<ComponentPublicInstance<Props, RawBindings, D, C, M>>
|
|
|
|
|
|
|
|
-export type ComponentOptionsWithProps<
|
|
|
|
|
- PropsOptions = ComponentPropsOptions,
|
|
|
|
|
|
|
+export type ComponentOptionsWithObjectProps<
|
|
|
|
|
+ PropsOptions = ComponentObjectPropsOptions,
|
|
|
RawBindings = {},
|
|
RawBindings = {},
|
|
|
D = {},
|
|
D = {},
|
|
|
C extends ComputedOptions = {},
|
|
C extends ComputedOptions = {},
|
|
@@ -91,7 +91,7 @@ export type ComponentOptionsWithProps<
|
|
|
|
|
|
|
|
export type ComponentOptions =
|
|
export type ComponentOptions =
|
|
|
| ComponentOptionsWithoutProps
|
|
| ComponentOptionsWithoutProps
|
|
|
- | ComponentOptionsWithProps
|
|
|
|
|
|
|
+ | ComponentOptionsWithObjectProps
|
|
|
| ComponentOptionsWithArrayProps
|
|
| ComponentOptionsWithArrayProps
|
|
|
|
|
|
|
|
// TODO legacy component definition also supports constructors with .options
|
|
// TODO legacy component definition also supports constructors with .options
|