Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] updated the library interface file
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Jan 20, 2016
1 parent 711115f commit 2ab1cb1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions interfaces/webcompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ 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<string>, callback: () => void): void;
be(inPath: string, outPath: string, lintPaths: ?Array<string>, callback: ?() => void): void;
fe(inPath: string, outPath: string, lintPaths: ?Array<string>, callback: ?() => void): void;
}

declare class SASS {
constructor(includePaths: ?Array<string>, excludeLinter: ?Array<string>, importOnceOptions: ?Object): void;
constructor(compress: ?boolean, includePaths: ?Array<string>, excludeLinter: ?Array<string>,
importOnceOptions: ?Object): void;
lint(paths: Array<string>, callback: () => void): void;
fe(inPath: string, outPath: string, lintPaths: ?Array<string>, callback: ?() => void): void;
}
Expand All @@ -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;
Expand All @@ -62,7 +63,7 @@ declare module 'webcompiler' {
}

declare class SASSCompiler {
constructor(includePaths: ?Array<string>, importOnceOptions: ?Object): void;
constructor(compress: ?boolean, includePaths: ?Array<string>, 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;
Expand Down

0 comments on commit 2ab1cb1

Please sign in to comment.