Skip to content

Commit

Permalink
chore: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 29, 2024
1 parent db2ffae commit c0c78f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/rules/no-deprecated-api.js
Expand Up @@ -16,12 +16,7 @@ const getSemverRange = require("../util/get-semver-range")
const extendTrackmapWithNodePrefix = require("../util/extend-trackmap-with-node-prefix")
const unprefixNodeColon = require("../util/unprefix-node-colon")

/**
* @typedef DeprecatedInfo
* @property {string} since the version when the API was deprecated.
* @property {string|{ name: string, supported: string }[]|null} replacedBy the text of substitute way.
* @property {string} [removed] the version when the API was removed.
*/
/** @typedef {import('../unsupported-features/types.js').DeprecatedInfo} DeprecatedInfo */
/**
* @typedef ParsedOptions
* @property {import('semver').Range} version
Expand Down Expand Up @@ -767,7 +762,7 @@ module.exports = {
const data = {
name,
version: info.since,
removed: info.removed,
removed: info.removed || "",
replace: toReplaceMessage(info.replacedBy, version),
}

Expand Down

0 comments on commit c0c78f1

Please sign in to comment.