DefinitelyTyped/envify/envify.d.ts
John Vilk 161d514d12 [browserify] Update definitions to match latest API. Add comments from documentation.
I've also inferred extra information through examining the source code, as particular options are not well-documented.

This also updates envify's typings to be more specific.
2015-11-19 13:36:58 -05:00

17 lines
565 B
TypeScript

// Type definitions for envify
// Project: https://github.com/hughsk/envify
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "envify" {
var envify: (file: string, environment: { [name: string]: any }) => NodeJS.ReadWriteStream;
export = envify;
}
declare module "envify/custom" {
function envify(environment: { [name: string]: any }): (file: string, environment: { [name: string]: any }) => NodeJS.ReadWriteStream;
export = envify;
}