mirror of
https://codeberg.org/Sevichecc/Seigwai.git
synced 2025-04-30 07:49:30 +08:00
26 lines
887 B
TypeScript
26 lines
887 B
TypeScript
|
|
/// <reference path="./schema.d.ts" />
|
|
|
|
import type { RuntimeConfig } from 'nuxt/schema'
|
|
import type { H3Event } from 'h3'
|
|
import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderHTMLContext } from 'nuxt/dist/core/runtime/nitro/renderer'
|
|
|
|
declare module 'nitropack' {
|
|
interface NitroRuntimeConfigApp {
|
|
buildAssetsDir: string
|
|
cdnURL: string
|
|
}
|
|
interface NitroRuntimeConfig extends RuntimeConfig {}
|
|
interface NitroRouteConfig {
|
|
ssr?: boolean
|
|
experimentalNoScripts?: boolean
|
|
}
|
|
interface NitroRouteRules {
|
|
ssr?: boolean
|
|
experimentalNoScripts?: boolean
|
|
}
|
|
interface NitroRuntimeHooks {
|
|
'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => void | Promise<void>
|
|
'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
|
|
}
|
|
}
|