From 418e6ee6ffffc96ef869b0bb4438cf3ba94d1941 Mon Sep 17 00:00:00 2001 From: Bruno Lemos Date: Fri, 26 Oct 2018 16:07:01 -0300 Subject: [PATCH] Fix process.env types (#5589) Fix #5576 --- packages/react-scripts/config/react-app.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/react-scripts/config/react-app.d.ts b/packages/react-scripts/config/react-app.d.ts index 82d32f10..8d91473d 100644 --- a/packages/react-scripts/config/react-app.d.ts +++ b/packages/react-scripts/config/react-app.d.ts @@ -3,12 +3,10 @@ // If you need to add additional declarations, please do so in a new file. declare namespace NodeJS { - interface Process { - env: { - [key: string]: string | undefined; - NODE_ENV: 'development' | 'production' | 'test'; - PUBLIC_URL: string; - }; + interface ProcessEnv { + [key: string]: string | undefined + NODE_ENV: 'development' | 'production' | 'test' + PUBLIC_URL: string } }