Nuxt/packages/nuxt/index.d.ts

29 lines
689 B
TypeScript

/* eslint-disable no-var */
declare global {
var __NUXT_VERSION__: string
var __NUXT_ASYNC_CONTEXT__: boolean
var __NUXT_PREPATHS__: string[] | string | undefined
var __NUXT_PATHS__: string[] | string | undefined
interface Navigator {
connection?: {
type: 'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown'
effectiveType: 'slow-2g' | '2g' | '3g' | '4g'
}
}
interface Window {
cookieStore?: {
onchange: (event: any) => void
}
}
}
declare module '#app/defaults' {
type DefaultAsyncDataErrorValue = undefined
type DefaultAsyncDataValue = undefined
type DefaultErrorValue = undefined
}
export {}