File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ export interface HookBeforeCreate { beforeCreate ( ) : void ; }
2
+ export interface HookCreated { created ( ) : void ; }
3
+ export interface HookBeforeMount { beforeMount ( ) : void ; }
4
+ export interface HookMounted { mounted ( ) : void ; }
5
+ export interface HookBeforeUpdate { beforeUpdate ( ) : void ; }
6
+ export interface HookUpdated { updated ( ) : void ; }
7
+ export interface HookActivated { activated ( ) : void ; }
8
+ export interface HookDeactivated { deactivated ( ) : void ; }
9
+ export interface HookBeforeDestroy { beforeDestroy ( ) : void ; }
10
+ export interface HookBeforeUnmount { beforeUnmount ( ) : void ; }
11
+ export interface HookDestroyed { destroyed ( ) : void ; }
12
+ export interface HookUnmounted { unmounted ( ) : void ; }
13
+ export interface HookRenderTracked { renderTracked ( ) : void ; }
14
+ export interface HookRenderTriggered { renderTriggered ( ) : void ; }
15
+ export interface HookErrorCaptured { errorCaptured ( ) : void ; }
16
+ export interface HookServerPrefetch { serverPrefetch ( ) : void ; }
17
+ export interface HookRender { render ( ) : void ; }
Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ export { createDecorator } from './custom/custom'
13
13
export { mixins } from './mixins'
14
14
export { TSX } from './tsx/type'
15
15
export { Base , Base as Vue } from './class'
16
+ export * from './hooks'
16
17
export { toNative } from './component'
Original file line number Diff line number Diff line change
1
+ import { HookBeforeUnmount , HookMounted } from '../dist/esm'
2
+
3
+ class MyTestComponent implements HookBeforeUnmount , HookMounted {
4
+ beforeUnmount ( ) : void { }
5
+ mounted ( ) : void { }
6
+ }
You can’t perform that action at this time.
0 commit comments