Skip to content

Commit c0c78f1

Browse files
committed
chore: fix typings
1 parent db2ffae commit c0c78f1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/rules/no-deprecated-api.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ const getSemverRange = require("../util/get-semver-range")
1616
const extendTrackmapWithNodePrefix = require("../util/extend-trackmap-with-node-prefix")
1717
const unprefixNodeColon = require("../util/unprefix-node-colon")
1818

19-
/**
20-
* @typedef DeprecatedInfo
21-
* @property {string} since the version when the API was deprecated.
22-
* @property {string|{ name: string, supported: string }[]|null} replacedBy the text of substitute way.
23-
* @property {string} [removed] the version when the API was removed.
24-
*/
19+
/** @typedef {import('../unsupported-features/types.js').DeprecatedInfo} DeprecatedInfo */
2520
/**
2621
* @typedef ParsedOptions
2722
* @property {import('semver').Range} version
@@ -767,7 +762,7 @@ module.exports = {
767762
const data = {
768763
name,
769764
version: info.since,
770-
removed: info.removed,
765+
removed: info.removed || "",
771766
replace: toReplaceMessage(info.replacedBy, version),
772767
}
773768

0 commit comments

Comments
 (0)