File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ export const onUpdated = createHook(LifecycleHooks.UPDATED)
60
60
export const onBeforeUnmount = createHook ( LifecycleHooks . BEFORE_UNMOUNT )
61
61
export const onUnmounted = createHook ( LifecycleHooks . UNMOUNTED )
62
62
63
- type DebuggerHook = ( e : DebuggerEvent ) => void
63
+ export type DebuggerHook = ( e : DebuggerEvent ) => void
64
64
export const onRenderTriggered = createHook < DebuggerHook > (
65
65
LifecycleHooks . RENDER_TRIGGERED
66
66
)
67
67
export const onRenderTracked = createHook < DebuggerHook > (
68
68
LifecycleHooks . RENDER_TRACKED
69
69
)
70
70
71
- type ErrorCapturedHook = (
71
+ export type ErrorCapturedHook = (
72
72
err : Error ,
73
73
instance : ComponentPublicInstance | null ,
74
74
info : string
Original file line number Diff line number Diff line change @@ -25,9 +25,11 @@ import {
25
25
onRenderTracked ,
26
26
onBeforeUnmount ,
27
27
onUnmounted ,
28
- onRenderTriggered
28
+ onRenderTriggered ,
29
+ DebuggerHook ,
30
+ ErrorCapturedHook
29
31
} from './apiLifecycle'
30
- import { DebuggerEvent , reactive } from '@vue/reactivity'
32
+ import { reactive } from '@vue/reactivity'
31
33
import { ComponentObjectPropsOptions , ExtractPropTypes } from './componentProps'
32
34
import { Directive } from './directives'
33
35
import { VNodeChild } from './vnode'
@@ -172,9 +174,9 @@ export interface LegacyOptions<
172
174
deactivated ?( ) : void
173
175
beforeUnmount ?( ) : void
174
176
unmounted ?( ) : void
175
- renderTracked ?( e : DebuggerEvent ) : void
176
- renderTriggered ?( e : DebuggerEvent ) : void
177
- errorCaptured ?( ) : boolean | void
177
+ renderTracked ?: DebuggerHook
178
+ renderTriggered ?: DebuggerHook
179
+ errorCaptured ?: ErrorCapturedHook
178
180
}
179
181
180
182
export function applyOptions (
You can’t perform that action at this time.
0 commit comments