mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
feat(dotenv-load): new definition (#45616)
* feat(dotenv-load): new definition * Update index.d.ts use `export = ` syntax instead of `export default`
This commit is contained in:
parent
d5b7b77e1b
commit
09e9df2996
5
types/dotenv-load/dotenv-load-tests.ts
Normal file
5
types/dotenv-load/dotenv-load-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import dotenvLoad from 'dotenv-load';
|
||||
|
||||
// tests
|
||||
dotenvLoad();
|
||||
dotenvLoad('test');
|
||||
8
types/dotenv-load/index.d.ts
vendored
Normal file
8
types/dotenv-load/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for dotenv-load 2.0
|
||||
// Project: https://github.com/formatlos/dotenv-load
|
||||
// Definitions by: Sean S. LeBlanc <https://github.com/seleb>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function dotenvLoad(preloadEnv?: string): void;
|
||||
|
||||
export = dotenvLoad;
|
||||
24
types/dotenv-load/tsconfig.json
Normal file
24
types/dotenv-load/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"dotenv-load-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/dotenv-load/tslint.json
Normal file
1
types/dotenv-load/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user