mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(ts): fix context.app
type (#5701)
This commit is contained in:
parent
501c58608c
commit
732be3288e
9
packages/vue-app/types/index.d.ts
vendored
9
packages/vue-app/types/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import Vue from 'vue'
|
||||
import Vue, { ComponentOptions } from 'vue'
|
||||
import VueRouter, { Route } from 'vue-router'
|
||||
import { Store } from 'vuex'
|
||||
import { IncomingMessage, ServerResponse } from 'http'
|
||||
@ -14,7 +14,7 @@ type Dictionary<T> = { [key: string]: T }
|
||||
type NuxtState = Dictionary<any>
|
||||
|
||||
export interface Context {
|
||||
app: Vue
|
||||
app: NuxtAppOptions
|
||||
/**
|
||||
* @deprecated Use process.client instead
|
||||
*/
|
||||
@ -81,7 +81,12 @@ export interface NuxtLoading extends Vue {
|
||||
start(): NuxtLoading
|
||||
}
|
||||
|
||||
export interface NuxtAppOptions extends ComponentOptions<Vue> {
|
||||
[key: string]: any // TBD
|
||||
}
|
||||
|
||||
export interface NuxtApp extends Vue {
|
||||
$options: NuxtAppOptions
|
||||
$loading: NuxtLoading
|
||||
isOffline: boolean
|
||||
isOnline: boolean
|
||||
|
Loading…
Reference in New Issue
Block a user