Skip to content

Commit

Permalink
refactor: convert CapturedErrorContext to interface to allow type a…
Browse files Browse the repository at this point in the history
…ugmentation (#2393)
  • Loading branch information
huang-julien committed Apr 25, 2024
1 parent 4293b8b commit 45ff175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export type {
export type { NitroAppPlugin } from "./plugin";
export type { RenderResponse, RenderHandler } from "./renderer";

export type CapturedErrorContext = {
export interface CapturedErrorContext {
event?: H3Event;
[key: string]: unknown;
};
}

export type CaptureError = (
error: Error,
Expand Down

0 comments on commit 45ff175

Please sign in to comment.