From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/tslint/lib/rules/deprecationRule.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'node_modules/tslint/lib/rules/deprecationRule.js') diff --git a/node_modules/tslint/lib/rules/deprecationRule.js b/node_modules/tslint/lib/rules/deprecationRule.js index bcd8a7da4..619783700 100644 --- a/node_modules/tslint/lib/rules/deprecationRule.js +++ b/node_modules/tslint/lib/rules/deprecationRule.js @@ -36,11 +36,11 @@ var Rule = /** @class */ (function (_super) { Rule.metadata = { ruleName: "deprecation", description: "Warns when deprecated APIs are used.", - descriptionDetails: (_a = ["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"], _a.raw = ["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"], Lint.Utils.dedent(_a)), + descriptionDetails: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"], ["Any usage of an identifier\n with the @deprecated JSDoc annotation will trigger a warning.\n See http://usejsdoc.org/tags-deprecated.html"]))), rationale: "Deprecated APIs should be avoided, and usage updated.", optionsDescription: "", options: null, - optionExamples: [], + optionExamples: [true], type: "maintainability", typescriptOnly: false, requiresTypeInfo: true, @@ -137,7 +137,7 @@ function getDeprecation(node, tc) { else { symbol = tc.getSymbolAtLocation(node); } - if (symbol !== undefined && Lint.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) { + if (symbol !== undefined && tsutils_1.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) { symbol = tc.getAliasedSymbol(symbol); } if (symbol === undefined || @@ -152,7 +152,7 @@ function findDeprecationTag(tags) { for (var _i = 0, tags_1 = tags; _i < tags_1.length; _i++) { var tag = tags_1[_i]; if (tag.name === "deprecated") { - return tag.text; + return tag.text === undefined ? "" : tag.text; } } return undefined; @@ -226,4 +226,4 @@ function isFunctionOrMethod(declarations) { return false; } } -var _a; +var templateObject_1; -- cgit v1.2.3