From cc43b8c14619025480a4f299722f3c7770048d7e Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Wed, 8 May 2024 16:46:39 +0200 Subject: [PATCH] Fix the process problem --- typings/gutenberg-env/index.d.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/typings/gutenberg-env/index.d.ts b/typings/gutenberg-env/index.d.ts index ecf60a7ca094f9..5a23ae5a5b9b99 100644 --- a/typings/gutenberg-env/index.d.ts +++ b/typings/gutenberg-env/index.d.ts @@ -3,9 +3,15 @@ interface Environment { IS_GUTENBERG_PLUGIN?: boolean; IS_WORDPRESS_CORE?: boolean; } -interface Process { - env: Environment; + +declare namespace NodeJS { + export interface ProcessEnv extends Environment {} + + export interface Process { + env: ProcessEnv; + } } -declare var process: Process; + +declare var process: NodeJS.Process; declare var SCRIPT_DEBUG: boolean;