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

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson committed Apr 2, 2017
1 parent eb363fd commit e6f3626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rules/noVoidExpressionRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export class Rule extends Lint.Rules.TypedRule {

public applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[] {
const ignoreArrowFunctionShorthand = this.ruleArguments.indexOf(OPTION_IGNORE_ARROW_FUNCTION_SHORTHAND) !== -1;
return this.applyWithFunction(sourceFile, (ctx) => walk(ctx, program.getTypeChecker()), { ignoreArrowFunctionShorthand });
return this.applyWithFunction<Options, Options>(
sourceFile, (ctx) => walk(ctx, program.getTypeChecker()), { ignoreArrowFunctionShorthand });
}
}

Expand Down

0 comments on commit e6f3626

Please sign in to comment.