chore: fix types

This commit is contained in:
Evan You 2019-10-30 11:29:08 -04:00
parent 247c53672d
commit e98c558bf3

View File

@ -138,8 +138,7 @@ function doWatch(
let cleanup: Function let cleanup: Function
const registerCleanup: CleanupRegistrator = (fn: () => void) => { const registerCleanup: CleanupRegistrator = (fn: () => void) => {
// TODO wrap the cleanup fn for error handling cleanup = runner.options.onStop = () => {
cleanup = runner.onStop = () => {
callWithErrorHandling(fn, instance, ErrorCodes.WATCH_CLEANUP) callWithErrorHandling(fn, instance, ErrorCodes.WATCH_CLEANUP)
} }
} }