@@ -5,70 +5,16 @@ export { decorator as Watch } from './option/watch'
5
5
export { decorator as Prop } from './option/props'
6
6
export { decorator as Inject } from './option/inject'
7
7
export { decorator as Emit } from './option/emit'
8
+
8
9
import type {
9
- ComponentInternalInstance ,
10
10
ComponentPublicInstance ,
11
- Slots ,
12
- nextTick ,
13
- WatchOptions ,
14
- WatchStopHandle ,
15
-
11
+ ComponentOptions
16
12
} from 'vue'
17
13
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
- // }
36
14
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
72
17
}
73
18
19
+
74
20
export const Vue = Base
0 commit comments