( hook: ErrorCapturedHook<TError>, target: ComponentInternalInstance | null = currentInstance, )
| 109 | ) => boolean | void |
| 110 | |
| 111 | export function onErrorCaptured<TError = Error>( |
| 112 | hook: ErrorCapturedHook<TError>, |
| 113 | target: ComponentInternalInstance | null = currentInstance, |
| 114 | ): void { |
| 115 | injectHook(LifecycleHooks.ERROR_CAPTURED, hook, target) |
| 116 | } |