Skip to content

Commit 29c3c42

Browse files
dhritzkivpooya parsa
authored andcommitted
fix(ts): deprecate isClient, isServer, isStatic (#5211)
1 parent 920f444 commit 29c3c42

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/vue-app/types/index.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ type NuxtState = Dictionary<any>
1414

1515
export interface Context {
1616
app: Vue
17-
isClient: boolean
18-
isServer: boolean
19-
isStatic: boolean
17+
/**
18+
* @deprecated Use process.client instead
19+
*/
20+
isClient: boolean; isClient: boolean;
21+
/**
22+
* @deprecated Use process.server instead
23+
*/
24+
isServer: boolean; isServer: boolean;
25+
/**
26+
* @deprecated Use process.static instead
27+
*/
28+
isStatic: boolean; isStatic: boolean;
2029
isDev: boolean
2130
isHMR: boolean
2231
route: Route

0 commit comments

Comments
 (0)