Added dotenv

This commit is contained in:
Haseeb Majid
2019-04-09 21:05:02 +01:00
parent 9101d423dc
commit 9f7e4d2bb5
4 changed files with 36 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for react-native-dotenv 0.2
// Project: https://github.com/zetachang/react-native-dotenv
// Definitions by: hmajid2301 <https://github.com/hmajid2301>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Env {
[name: string]: string;
}
export const env: Env;
@@ -0,0 +1,3 @@
import { env } from "react-native-dotenv";
env.CAT_API;
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"react-native-dotenv-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }