templates2.Base.Nuxt/server/utils/h3-event.ts
w4c-templates a7a56fd5e0
Some checks failed
CI / quality (push) Has been cancelled
chore(template): publish Base.Nuxt
2026-10-11 23:23:38 +03:00

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];