mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
fix(ts): deprecate isClient
, isServer
, isStatic
(#5211)
This commit is contained in:
parent
920f444b6e
commit
29c3c4250c
15
packages/vue-app/types/index.d.ts
vendored
15
packages/vue-app/types/index.d.ts
vendored
@ -14,9 +14,18 @@ type NuxtState = Dictionary<any>
|
|||||||
|
|
||||||
export interface Context {
|
export interface Context {
|
||||||
app: Vue
|
app: Vue
|
||||||
isClient: boolean
|
/**
|
||||||
isServer: boolean
|
* @deprecated Use process.client instead
|
||||||
isStatic: boolean
|
*/
|
||||||
|
isClient: boolean; isClient: boolean;
|
||||||
|
/**
|
||||||
|
* @deprecated Use process.server instead
|
||||||
|
*/
|
||||||
|
isServer: boolean; isServer: boolean;
|
||||||
|
/**
|
||||||
|
* @deprecated Use process.static instead
|
||||||
|
*/
|
||||||
|
isStatic: boolean; isStatic: boolean;
|
||||||
isDev: boolean
|
isDev: boolean
|
||||||
isHMR: boolean
|
isHMR: boolean
|
||||||
route: Route
|
route: Route
|
||||||
|
Loading…
Reference in New Issue
Block a user