Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

False positive with @types/chrome #83

Open
WiseBird opened this issue Mar 15, 2024 · 0 comments
Open

False positive with @types/chrome #83

WiseBird opened this issue Mar 15, 2024 · 0 comments

Comments

@WiseBird
Copy link

Usages of the chrome API, defined in this types - https://www.npmjs.com/package/@types/chrome, cause deprecation errors.

E.g. the following code

chrome.tabs.query({});

leads to this error:

deprecation_chrome/index.ts
  1:1  error  'chrome' is deprecated. Part of the deprecated Chrome Apps platform  deprecation/deprecation

whereas the API is not marked as deprecated

/**
 * Gets all tabs that have the specified properties, or all tabs if no properties are specified.
 * @since Chrome 16
 * @return The `query` method provides its result via callback or returned as a `Promise` (MV3 only).
 */

Message Part of the deprecated Chrome Apps platform is used a few times in the types, but has nothing to do with chrome.tabs.query.

Reproduction - https://github.com/WiseBird/deprecation_chrome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant