74 lines
2.7 KiB
TypeScript
74 lines
2.7 KiB
TypeScript
import { NuxtModule, RuntimeConfig } from '@nuxt/schema'
|
|
declare module '@nuxt/schema' {
|
|
interface NuxtOptions {
|
|
/**
|
|
* Configuration for `@nuxt/devtools`
|
|
*/
|
|
["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O : Record<string, any>
|
|
/**
|
|
* Configuration for `@nuxt/telemetry`
|
|
*/
|
|
["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O : Record<string, any>
|
|
}
|
|
interface NuxtConfig {
|
|
/**
|
|
* Configuration for `@nuxt/devtools`
|
|
*/
|
|
["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
/**
|
|
* Configuration for `@nuxt/telemetry`
|
|
*/
|
|
["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
|
|
}
|
|
}
|
|
declare module 'nuxt/schema' {
|
|
interface NuxtOptions {
|
|
/**
|
|
* Configuration for `@nuxt/devtools`
|
|
* @see https://www.npmjs.com/package/@nuxt/devtools
|
|
*/
|
|
["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O : Record<string, any>
|
|
/**
|
|
* Configuration for `@nuxt/telemetry`
|
|
* @see https://www.npmjs.com/package/@nuxt/telemetry
|
|
*/
|
|
["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O : Record<string, any>
|
|
}
|
|
interface NuxtConfig {
|
|
/**
|
|
* Configuration for `@nuxt/devtools`
|
|
* @see https://www.npmjs.com/package/@nuxt/devtools
|
|
*/
|
|
["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
/**
|
|
* Configuration for `@nuxt/telemetry`
|
|
* @see https://www.npmjs.com/package/@nuxt/telemetry
|
|
*/
|
|
["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
|
|
}
|
|
interface RuntimeConfig {
|
|
app: {
|
|
buildId: string,
|
|
|
|
baseURL: string,
|
|
|
|
buildAssetsDir: string,
|
|
|
|
cdnURL: string,
|
|
},
|
|
|
|
nitro: {
|
|
envPrefix: string,
|
|
},
|
|
}
|
|
interface PublicRuntimeConfig {
|
|
|
|
}
|
|
}
|
|
declare module 'vue' {
|
|
interface ComponentCustomProperties {
|
|
$config: RuntimeConfig
|
|
}
|
|
} |