@@ -5,70 +5,16 @@ export { decorator as Watch } from './option/watch'
55export { decorator as Prop } from './option/props'
66export { decorator as Inject } from './option/inject'
77export { decorator as Emit } from './option/emit'
8+
89import type {
9- ComponentInternalInstance ,
1010 ComponentPublicInstance ,
11- Slots ,
12- nextTick ,
13- WatchOptions ,
14- WatchStopHandle ,
15-
11+ ComponentOptions
1612} from 'vue'
1713
18- // export declare class Base {
19-
20- // $: ComponentInternalInstance;
21- // $data: any//D;
22- // $props: any//MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps;
23- // $attrs: any//Data;
24- // $refs: any//Data;
25- // $slots: Slots;
26- // $root: ComponentPublicInstance | null;
27- // $parent: ComponentPublicInstance | null;
28- // $emit: any// EmitFn<E>;
29- // $el: any;
30- // $options: any//Options & MergedComponentOptionsOverride;
31- // $forceUpdate: () => void;
32- // $nextTick: typeof nextTick;
33- // $watch: { (source: string | Function, cb: Function, options?: WatchOptions): WatchStopHandle };
34-
35- // }
3614
37- export class Base {
38-
39- $ ! : ComponentInternalInstance ;
40- $data ! : any //D;
41- $props ! : any //MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps;
42- $attrs ! : any //Data;
43- $refs ! : any //Data;
44- $slots ! : Slots ;
45- $root ! : ComponentPublicInstance | null ;
46- $parent ! : ComponentPublicInstance | null ;
47- $emit ! : any // EmitFn<E>;
48- $el ! : any ;
49- $options ! : any //Options & MergedComponentOptionsOverride;
50- $forceUpdate ! : ( ) => void ;
51- $nextTick ! : typeof nextTick ;
52- $watch ! : { ( source : string | Function , cb : Function , options ?: WatchOptions ) : WatchStopHandle } ;
53-
54-
55- beforeCreate ?( ) : void ;
56- created ?( ) : void ;
57- beforeMount ?( ) : void ;
58- mounted ?( ) : void ;
59- beforeUpdate ?( ) : void ;
60- updated ?( ) : void ;
61- activated ?( ) : void ;
62- deactivated ?( ) : void ;
63- /** @deprecated use `beforeUnmount` instead */
64- beforeDestroy ?( ) : void ;
65- beforeUnmount ?( ) : void ;
66- /** @deprecated use `unmounted` instead */
67- destroyed ?( ) : void ;
68- unmounted ?( ) : void ;
69- renderTracked ?( e : any ) : void ;
70- renderTriggered ?( e : any ) : void ;
71- errorCaptured ?( err : any , instance : ComponentPublicInstance | null , info : string ) : boolean | void ;
15+ export const Base = class { } as {
16+ new ( ) : ComponentPublicInstance
7217}
7318
19+
7420export const Vue = Base
0 commit comments