diff options
Diffstat (limited to 'node_modules/tslint/lib/rules/noMisusedNewRule.js')
-rw-r--r-- | node_modules/tslint/lib/rules/noMisusedNewRule.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node_modules/tslint/lib/rules/noMisusedNewRule.js b/node_modules/tslint/lib/rules/noMisusedNewRule.js index 4f166eb36..8a26af86c 100644 --- a/node_modules/tslint/lib/rules/noMisusedNewRule.js +++ b/node_modules/tslint/lib/rules/noMisusedNewRule.js @@ -35,6 +35,7 @@ var Rule = /** @class */ (function (_super) { optionsDescription: "Not configurable.", options: null, optionExamples: [true], + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Interfaces in TypeScript aren't meant to describe constructors on their implementations.\n The `new` descriptor is primarily for describing JavaScript libraries.\n If you're trying to describe a function known to be a class, it's typically better to `declare class`.\n "], ["\n Interfaces in TypeScript aren't meant to describe constructors on their implementations.\n The \\`new\\` descriptor is primarily for describing JavaScript libraries.\n If you're trying to describe a function known to be a class, it's typically better to \\`declare class\\`.\n "]))), type: "functionality", typescriptOnly: true, }; @@ -72,3 +73,4 @@ function returnTypeMatchesParent(parent, decl) { } return decl.type.typeName.kind === ts.SyntaxKind.Identifier && decl.type.typeName.text === parent.name.text; } +var templateObject_1; |