From 3e4ac6cc86035da53df6254c856fd504407ab4c1 Mon Sep 17 00:00:00 2001 From: Haseeb Majid Date: Sun, 14 Apr 2019 11:46:07 +0100 Subject: [PATCH] Fixed Issues Fixed issues related to code review. --- types/react-native-dotenv/index.d.ts | 3 +-- .../react-native-dotenv-tests.ts | 2 +- types/react-native-dotenv/tsconfig.json | 14 ++++---------- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/types/react-native-dotenv/index.d.ts b/types/react-native-dotenv/index.d.ts index 9066cfc0aa..7c56c10553 100644 --- a/types/react-native-dotenv/index.d.ts +++ b/types/react-native-dotenv/index.d.ts @@ -9,5 +9,4 @@ interface Env { } declare const env: Env; - -export { env }; +export = env; diff --git a/types/react-native-dotenv/react-native-dotenv-tests.ts b/types/react-native-dotenv/react-native-dotenv-tests.ts index 1bb0e930e6..ad17edf36b 100644 --- a/types/react-native-dotenv/react-native-dotenv-tests.ts +++ b/types/react-native-dotenv/react-native-dotenv-tests.ts @@ -1,3 +1,3 @@ -import { env } from "react-native-dotenv"; +import env from "react-native-dotenv"; env.API_KEY; diff --git a/types/react-native-dotenv/tsconfig.json b/types/react-native-dotenv/tsconfig.json index 9f81e8b6a1..23b7cfb9ed 100644 --- a/types/react-native-dotenv/tsconfig.json +++ b/types/react-native-dotenv/tsconfig.json @@ -1,23 +1,17 @@ { "compilerOptions": { "module": "commonjs", - "lib": [ - "es6" - ], + "lib": ["es6"], + "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", - "typeRoots": [ - "../" - ], + "typeRoots": ["../"], "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, - "files": [ - "index.d.ts", - "react-native-dotenv-tests.ts" - ] + "files": ["index.d.ts", "react-native-dotenv-tests.ts"] }