mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
// Type definitions for Browserify
|
|
// Project: http://browserify.org/
|
|
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar/>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference path="../node/node.d.ts" />
|
|
|
|
interface BrowserifyObject extends NodeJS.EventEmitter {
|
|
add(file: string): BrowserifyObject;
|
|
require(file: string, opts?: {
|
|
expose: string;
|
|
}): BrowserifyObject;
|
|
bundle(opts?: {
|
|
insertGlobals?: boolean;
|
|
detectGlobals?: boolean;
|
|
debug?: boolean;
|
|
standalone?: string;
|
|
insertGlobalVars?: any;
|
|
}, cb?: (err: any, src: any) => void): NodeJS.ReadableStream;
|
|
|
|
external(file: string): BrowserifyObject;
|
|
ignore(file: string): BrowserifyObject;
|
|
transform(tr: string): BrowserifyObject;
|
|
transform(tr: Function): BrowserifyObject;
|
|
}
|
|
|
|
declare module "browserify" {
|
|
function browserify(): BrowserifyObject;
|
|
function browserify(files: string[]): BrowserifyObject;
|
|
function browserify(opts: {
|
|
entries?: string[];
|
|
noParse?: string[];
|
|
}): BrowserifyObject;
|
|
|
|
export = browserify;
|
|
} |