mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
chore: fix lint/ts errors
This commit is contained in:
parent
c0e565cbe7
commit
08e0f71946
@ -78,7 +78,7 @@ export type ModuleHandler<T = any> = (this: ModuleThis, moduleOptions: T) => Pro
|
|||||||
|
|
||||||
export type NuxtModule = string | ModuleHandler | [string | ModuleHandler, any]
|
export type NuxtModule = string | ModuleHandler | [string | ModuleHandler, any]
|
||||||
|
|
||||||
export type ServerMiddleware = string | { path: string, prefix?: boolean, handler: string | NextHandleFunction } | NextHandleFunction
|
export type ServerMiddleware = string | { path: string, prefix?: boolean, handler: string | express.NextFunction } | express.NextFunction
|
||||||
|
|
||||||
interface CommonConfiguration {
|
interface CommonConfiguration {
|
||||||
_modules: NuxtModule[]
|
_modules: NuxtModule[]
|
||||||
@ -113,7 +113,7 @@ interface CommonConfiguration {
|
|||||||
modules: NuxtModule[]
|
modules: NuxtModule[]
|
||||||
privateRuntimeConfig: Record<string, any> | ((env: NodeJS.ProcessEnv) => Record<string, any>)
|
privateRuntimeConfig: Record<string, any> | ((env: NodeJS.ProcessEnv) => Record<string, any>)
|
||||||
publicRuntimeConfig: Record<string, any> | ((env: NodeJS.ProcessEnv) => Record<string, any>)
|
publicRuntimeConfig: Record<string, any> | ((env: NodeJS.ProcessEnv) => Record<string, any>)
|
||||||
serverMiddleware: Array<ServerMiddleware> | Record<string, expr>
|
serverMiddleware: Array<ServerMiddleware> | Record<string, express.Handler>
|
||||||
ssr: boolean
|
ssr: boolean
|
||||||
target: Target
|
target: Target
|
||||||
test: boolean
|
test: boolean
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
import type { ServerResponse, IncomingMessage } from 'http'
|
import type { ServerResponse, IncomingMessage } from 'http'
|
||||||
import type { CompressionOptions } from 'compression'
|
import type { CompressionOptions } from 'compression'
|
||||||
import type { ServeStaticOptions } from 'serve-static'
|
import type { ServeStaticOptions } from 'serve-static'
|
||||||
|
import type etag from 'etag'
|
||||||
import type { ServerMiddleware } from './_common'
|
import type { ServerMiddleware } from './_common'
|
||||||
|
|
||||||
interface PreloadFile {
|
interface PreloadFile {
|
||||||
@ -40,7 +41,7 @@ interface RenderOptions {
|
|||||||
unsafeInlineCompatibility?: boolean
|
unsafeInlineCompatibility?: boolean
|
||||||
}
|
}
|
||||||
dist: ServeStaticOptions
|
dist: ServeStaticOptions
|
||||||
etag: false | EtagOptions & {
|
etag: false | etag.Options & {
|
||||||
hash?: (html: string) => string
|
hash?: (html: string) => string
|
||||||
}
|
}
|
||||||
fallback?: {
|
fallback?: {
|
||||||
|
Loading…
Reference in New Issue
Block a user