mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Added dotenv
This commit is contained in:
Vendored
+10
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user