From ea4f17bf4da86122e6df842d75a1a074b6b4b23d Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 20 Mar 2020 19:15:10 +0100 Subject: [PATCH] Restore native checking, relax implicit any --- packages/url/tsconfig.json | 5 ++++- tsconfig.base.json | 11 +---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/url/tsconfig.json b/packages/url/tsconfig.json index 3c2c31f506f132..70efdfe49990d5 100644 --- a/packages/url/tsconfig.json +++ b/packages/url/tsconfig.json @@ -2,7 +2,10 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "src", - "declarationDir": "build-types" + "declarationDir": "build-types", + + // This is required because the `react-native-url-polyfill` dependency lacks types + "noImplicitAny": false }, "include": [ "src/**/*" ] } diff --git a/tsconfig.base.json b/tsconfig.base.json index 150fa39973dc64..4d9920e600802f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -30,14 +30,5 @@ "esModuleInterop": false, "resolveJsonModule": true }, - "exclude": [ - // Don't compile react-native types. - // They create incompatibilities and require a separate build. - "**/*.native.js", - - "**/benchmark", - "**/test/**", - "**/build/**", - "**/build-*/**" - ] + "exclude": [ "**/benchmark", "**/test/**", "**/build/**", "**/build-*/**" ] }