diff --git a/interfaces/webcompiler.js b/interfaces/webcompiler.js index aebb769..1af8285 100644 --- a/interfaces/webcompiler.js +++ b/interfaces/webcompiler.js @@ -24,7 +24,7 @@ declare module 'webcompiler' { declare function yaml(filename: string, callback: YAMLCallback): void; declare class JS { - constructor(babelOptions: ?Object, lintRules: ?Object): void; + constructor(compress: ?boolean, babelOptions: ?Object, lintRules: ?Object): void; typecheck(callback: () => void): void; lint(paths: Array, callback: () => void): void; be(inPath: string, outPath: string, lintPaths: ?Array, callback: ?() => void): void; @@ -32,7 +32,8 @@ declare module 'webcompiler' { } declare class SASS { - constructor(includePaths: ?Array, excludeLinter: ?Array, importOnceOptions: ?Object): void; + constructor(compress: ?boolean, includePaths: ?Array, excludeLinter: ?Array, + importOnceOptions: ?Object): void; lint(paths: Array, callback: () => void): void; fe(inPath: string, outPath: string, lintPaths: ?Array, callback: ?() => void): void; } @@ -50,7 +51,7 @@ declare module 'webcompiler' { } declare class JSCompiler { - constructor(options: ?Object): void; + constructor(compress: ?boolean, options: ?Object): void; minify(path: string, data: ProgramData): ProgramData; be(inPath: string, outPath: string, callback: ?() => void): void; fe(inPath: string, outPath: string, callback: ?() => void): void; @@ -62,7 +63,7 @@ declare module 'webcompiler' { } declare class SASSCompiler { - constructor(includePaths: ?Array, importOnceOptions: ?Object): void; + constructor(compress: ?boolean, includePaths: ?Array, importOnceOptions: ?Object): void; minify(path: string, data: ProgramData): ?ProgramData; autoprefix(path: string, data: ProgramData, callback: AutoprefixCallback): void; fe(inPath: string, outPath: string, callback: ?() => void): void;