mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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 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 {
|
||||
_modules: NuxtModule[]
|
||||
@ -113,7 +113,7 @@ interface CommonConfiguration {
|
||||
modules: NuxtModule[]
|
||||
privateRuntimeConfig: 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
|
||||
target: Target
|
||||
test: boolean
|
||||
|
@ -2,6 +2,7 @@
|
||||
import type { ServerResponse, IncomingMessage } from 'http'
|
||||
import type { CompressionOptions } from 'compression'
|
||||
import type { ServeStaticOptions } from 'serve-static'
|
||||
import type etag from 'etag'
|
||||
import type { ServerMiddleware } from './_common'
|
||||
|
||||
interface PreloadFile {
|
||||
@ -40,7 +41,7 @@ interface RenderOptions {
|
||||
unsafeInlineCompatibility?: boolean
|
||||
}
|
||||
dist: ServeStaticOptions
|
||||
etag: false | EtagOptions & {
|
||||
etag: false | etag.Options & {
|
||||
hash?: (html: string) => string
|
||||
}
|
||||
fallback?: {
|
||||
|
Loading…
Reference in New Issue
Block a user