From e7fedfb72d8fec50e08ebd26ef1cd8be87b4d8de Mon Sep 17 00:00:00 2001 From: ZHAO Jinxiang Date: Wed, 31 Oct 2018 12:42:12 +0800 Subject: [PATCH] fix: Duplicate string index signature in ProcessEnv (#5621) --- lib/react-app.d.ts | 1 - scripts/utils/verifyTypeScriptSetup.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/react-app.d.ts b/lib/react-app.d.ts index 31e990dedaf..289f975845c 100644 --- a/lib/react-app.d.ts +++ b/lib/react-app.d.ts @@ -4,7 +4,6 @@ declare namespace NodeJS { interface ProcessEnv { - [key: string]: string | undefined NODE_ENV: 'development' | 'production' | 'test' PUBLIC_URL: string } diff --git a/scripts/utils/verifyTypeScriptSetup.js b/scripts/utils/verifyTypeScriptSetup.js index 4add778ff49..b1d6a5d71c9 100644 --- a/scripts/utils/verifyTypeScriptSetup.js +++ b/scripts/utils/verifyTypeScriptSetup.js @@ -94,7 +94,7 @@ function verifyTypeScriptSetup() { suggested: 'es5', }, allowJs: { suggested: true }, - skipLibCheck: { suggested: true }, + skipLibCheck: { suggested: false }, esModuleInterop: { suggested: true }, allowSyntheticDefaultImports: { suggested: true }, strict: { suggested: true },