-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
interface Environment { | ||
NODE_ENV: unknown; | ||
IS_GUTENBERG_PLUGIN?: boolean; | ||
IS_WORDPRESS_CORE?: boolean; | ||
} | ||
|
||
declare namespace NodeJS { | ||
export interface ProcessEnv extends Environment {} | ||
|
||
export interface Process { | ||
env: ProcessEnv; | ||
interface ProcessEnv { | ||
readonly NODE_ENV?: 'production' | 'development' | 'test'; | ||
} | ||
interface Process { | ||
env: NodeJS.ProcessEnv; | ||
} | ||
} | ||
|
||
declare var process: NodeJS.Process; | ||
|
||
declare var SCRIPT_DEBUG: boolean; | ||
declare var SCRIPT_DEBUG: undefined | boolean; | ||
declare var IS_GUTENBERG_PLUGIN: undefined | boolean; | ||
declare var IS_WORDPRESS_CORE: undefined | boolean; |