export interface FunctionalComponent<P = {}, E extends EmitsOptions = {}>
extends ComponentInternalOptions {
// use of any here is intentional so it can be a valid JSX Element constructor
- (props: P, ctx: SetupContext<E, P>): any
- (props: P, ctx: Omit<SetupContext<E>, 'expose'>): any
++ (props: P, ctx: Omit<SetupContext<E, P>, 'expose'>): any
props?: ComponentPropsOptions<P>
emits?: E | (keyof E)[]
inheritAttrs?: boolean
})
} else {
return {
+ props: instance.props,
attrs: instance.attrs,
slots: instance.slots,
- emit: instance.emit
+ emit: instance.emit,
+ expose
}
}
}