Skip to content

Commit

Permalink
Fix TypeScript 2.6 compilation bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly committed Nov 17, 2017
1 parent ca9abd1 commit 448ba32
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 169 deletions.
2 changes: 1 addition & 1 deletion src/IncrementalChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class IncrementalChecker {
cancellationToken.throwIfCancellationRequested();
}

const diagnosticsToRegister: ts.Diagnostic[] = this.checkSyntacticErrors
const diagnosticsToRegister: ReadonlyArray<ts.Diagnostic> = this.checkSyntacticErrors
? []
.concat(this.program.getSemanticDiagnostics(sourceFile, cancellationToken))
.concat(this.program.getSyntacticDiagnostics(sourceFile, cancellationToken))
Expand Down
5 changes: 3 additions & 2 deletions src/WorkSet.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import ts = require('typescript');

class WorkSet {
workDomain: any[];
workDomain: ReadonlyArray<ts.SourceFile> | string[];
workNumber: number;
workDivision: number;
workSize: number;
workBegin: number;
workEnd: number;

constructor(workDomain: any[], workNumber: number, workDivision: number) {
constructor(workDomain: ReadonlyArray<ts.SourceFile> | string[], workNumber: number, workDivision: number) {
this.workDomain = workDomain;
this.workNumber = workNumber;
this.workDivision = workDivision;
Expand Down
Loading

0 comments on commit 448ba32

Please sign in to comment.