Add client hooks

This commit is contained in:
Chocobozzz
2019-07-24 10:58:16 +02:00
committed by Chocobozzz
parent 587568e1cc
commit 93cae47925
31 changed files with 339 additions and 124 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ async function internalRunHook <T> (handler: Function, hookType: HookType, resul
}
if (hookType === HookType.ACTION) {
if (isCatchable(p)) p.catch(err => onError(err))
if (isCatchable(p)) p.catch((err: any) => onError(err))
return undefined
}