mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
commit
d96d009ffb
15
dotenv/dotenv-tests.ts
Normal file
15
dotenv/dotenv-tests.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/// <reference path="dotenv.d.ts" />
|
||||
|
||||
import dotenv = require('dotenv');
|
||||
|
||||
dotenv.config({
|
||||
silent: true
|
||||
});
|
||||
|
||||
dotenv.config({
|
||||
path: '.env'
|
||||
})
|
||||
|
||||
dotenv.config({
|
||||
encoding: 'utf8'
|
||||
})
|
||||
14
dotenv/dotenv.d.ts
vendored
Normal file
14
dotenv/dotenv.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
// Type definitions for dotenv 2.0.0
|
||||
// Project: https://github.com/motdotla/dotenv
|
||||
// Definitions by: Jussi Kinnula <https://github.com/jussikinnula/>
|
||||
// Definitions: https://github.com/jussikinnula/DefinitelyTyped
|
||||
|
||||
interface dotenvOptions {
|
||||
silent?: boolean;
|
||||
path?: string;
|
||||
encoding?: string;
|
||||
}
|
||||
|
||||
declare module 'dotenv' {
|
||||
export function config(options?: dotenvOptions): boolean;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user