Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
fix: fix nitrohook type
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Dec 12, 2023
1 parent f0da6d3 commit 58772e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/karbon/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ declare module '#app' {
}
}

declare module 'nitropack' {
// reference: https://github.com/harlan-zw/nuxt-simple-sitemap/blob/324719dff6bf5c4214a093adbac4d5105d35bcb3/src/module.ts#L236
declare module 'nitropack/dist/runtime/types' {
interface NitroRuntimeHooks {
'karbon:request': (ctx: RequestContext) => void
'karbon:response': (ctx: ResponseContext) => void
Expand Down

0 comments on commit 58772e3

Please sign in to comment.