chore: fix an any

This commit is contained in:
EnixCoda 2022-04-28 23:02:46 +08:00
parent bf37b6e7c5
commit afe2d0db66

View file

@ -58,13 +58,13 @@ Sentry.init(sentryOptions)
export const withErrorLog: Middleware = function withErrorLog(method, args) {
return [
async function () {
async function (...args) {
try {
await method.apply(null, arguments as any)
await method(...args)
} catch (error) {
if (error instanceof Error) raiseError(error)
}
} as any, // TO FIX: not sure how to fix this yet
} as typeof method,
args,
]
}