[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.
This commit is contained in:
John Vilk
2015-11-19 13:36:58 -05:00
parent fc341765eb
commit 161d514d12
3 changed files with 217 additions and 34 deletions
+4 -2
View File
@@ -3,12 +3,14 @@
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "envify" {
var envify: Function;
var envify: (file: string, environment: { [name: string]: any }) => NodeJS.ReadWriteStream;
export = envify;
}
declare module "envify/custom" {
function envify(environment: { [name: string]: any }): Function;
function envify(environment: { [name: string]: any }): (file: string, environment: { [name: string]: any }) => NodeJS.ReadWriteStream;
export = envify;
}