We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defineNitroErrorHandler
any
Node: v20.12.2 Nitropack: v2.9.6
https://github.com/rijenkii/nitro-error-type-bug
Open error.ts in vscode, hover over error and event parameters. Their type is any. Their type is supposed to be H3Error and H3Event respectively.
error.ts
error
event
H3Error
H3Event
No response
The text was updated successfully, but these errors were encountered:
temporary workaround :
import type { NitroErrorHandler } from "nitropack" export default defineNitroErrorHandler((...args: Parameters<NitroErrorHandler>) => { const [error, event] = args // code here })
Sorry, something went wrong.
No branches or pull requests
Environment
Node: v20.12.2
Nitropack: v2.9.6
Reproduction
https://github.com/rijenkii/nitro-error-type-bug
Describe the bug
Open
error.ts
in vscode, hover overerror
andevent
parameters. Their type isany
. Their type is supposed to beH3Error
andH3Event
respectively.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: