chore: fix types
This commit is contained in:
parent
247c53672d
commit
e98c558bf3
@ -138,8 +138,7 @@ function doWatch(
|
||||
|
||||
let cleanup: Function
|
||||
const registerCleanup: CleanupRegistrator = (fn: () => void) => {
|
||||
// TODO wrap the cleanup fn for error handling
|
||||
cleanup = runner.onStop = () => {
|
||||
cleanup = runner.options.onStop = () => {
|
||||
callWithErrorHandling(fn, instance, ErrorCodes.WATCH_CLEANUP)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user