5 lines
325 B
TypeScript
5 lines
325 B
TypeScript
// Two h3 copies exist in the tree (root + the one bundled by @nuxt/nitro-server), so importing
|
|
// `H3Event` from 'h3' resolves the wrong one and type errors. Derive the event type from the
|
|
// auto-imported h3 helpers instead — always the copy Nitro actually uses.
|
|
export type NitroEvent = Parameters<typeof getCookie>[0];
|