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 interface declaration for JSLint and SASSLint
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Jan 30, 2017
1 parent a7faf64 commit e3bdece
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions interfaces/webcompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare module 'webcompiler' {
declare var babelFEOptions: Object;

declare class JSLint {
constructor(rules: ?Object): void;
constructor(configFile: ?string): void;
run(paths: string[], callback: LintCallback): void;
}

Expand All @@ -82,7 +82,7 @@ declare module 'webcompiler' {
}

declare class SASSLint {
constructor(...excludeLinter: Array<string>): void;
constructor(configFile: ?string): void;
run(paths: string[], callback: LintCallback): void;
}

Expand All @@ -94,7 +94,7 @@ declare module 'webcompiler' {

declare class JS {
compiler: JSCompiler;
constructor(compress: ?boolean, lintRules: ?Object): void;
constructor(compress: ?boolean, configFile: ?string): void;
typecheck(callback: () => void): void;
lint(paths: string[], callback: () => void): void;
be(inPath: string, outPath: string, lintPaths: ?string[], callback: ?() => void): void;
Expand All @@ -103,8 +103,7 @@ declare module 'webcompiler' {

declare class SASS {
compiler: SASSCompiler;
constructor(compress: ?boolean, includePaths: ?Array<string>, excludeLinter: ?Array<string>,
importOnceOptions: ?Object): void;
constructor(compress: ?boolean, includePaths: ?string[], configFile: ?string, importOnceOptions: ?Object): void;
lint(paths: string[], callback: () => void): void;
fe(inPath: string, outPath: string, lintPaths: ?string[], callback: ?() => void): void;
}
Expand Down

0 comments on commit e3bdece

Please sign in to comment.