Skip to content

Commit

Permalink
fix: exclude undefined from hook types (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 27, 2023
1 parent aee0204 commit 303fadb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export interface NitroRuntimeHooks {
close: () => void;
error: CaptureError;

request: AppOptions["onRequest"];
beforeResponse: AppOptions["onBeforeResponse"];
afterResponse: AppOptions["onAfterResponse"];
request: NonNullable<AppOptions["onRequest"]>;
beforeResponse: NonNullable<AppOptions["onBeforeResponse"]>;
afterResponse: NonNullable<AppOptions["onAfterResponse"]>;

"render:response": (
response: Partial<RenderResponse>,
Expand Down

0 comments on commit 303fadb

Please sign in to comment.