diff options
Diffstat (limited to 'node_modules/tslint/lib/rules/preferFunctionOverMethodRule.js')
-rw-r--r-- | node_modules/tslint/lib/rules/preferFunctionOverMethodRule.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/tslint/lib/rules/preferFunctionOverMethodRule.js b/node_modules/tslint/lib/rules/preferFunctionOverMethodRule.js index 83daf2363..9f145cef6 100644 --- a/node_modules/tslint/lib/rules/preferFunctionOverMethodRule.js +++ b/node_modules/tslint/lib/rules/preferFunctionOverMethodRule.js @@ -22,7 +22,7 @@ var ts = require("typescript"); var Lint = require("../index"); var OPTION_ALLOW_PUBLIC = "allow-public"; var OPTION_ALLOW_PROTECTED = "allow-protected"; -var Rule = (function (_super) { +var Rule = /** @class */ (function (_super) { tslib_1.__extends(Rule, _super); function Rule() { return _super !== null && _super.apply(this, arguments) || this; @@ -54,7 +54,7 @@ var Rule = (function (_super) { return Rule; }(Lint.Rules.AbstractRule)); exports.Rule = Rule; -var PreferFunctionOverMethodWalker = (function (_super) { +var PreferFunctionOverMethodWalker = /** @class */ (function (_super) { tslib_1.__extends(PreferFunctionOverMethodWalker, _super); function PreferFunctionOverMethodWalker() { return _super !== null && _super.apply(this, arguments) || this; @@ -93,7 +93,7 @@ var PreferFunctionOverMethodWalker = (function (_super) { }; PreferFunctionOverMethodWalker.prototype.isExempt = function (node) { // TODO: handle the override keyword once it lands in the language - return node.body === undefined || + return node.body === undefined || // exclude abstract methods and overload signatures // exclude object methods node.parent.kind !== ts.SyntaxKind.ClassDeclaration && node.parent.kind !== ts.SyntaxKind.ClassExpression || tsutils_1.hasModifier(node.modifiers, ts.SyntaxKind.StaticKeyword) || |