I was creating custom errors in beforeError
hook. After upgrading to newer got version, it's not allowed by types (but still working if to cast types).
I have to cast type.
Return type for BeforeErrorHook
is any Error
.
Example of casting:
hooks: { beforeError: [error => new MyCustomError(error) as any]; }
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too