GoogleChrome / chrome-types

Code to parse Chrome's internal extension type definitions—published on NPM as chrome-types

Home Page:https://www.npmjs.com/package/chrome-types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong return type of chrome.windows.create()

SoaibHaque opened this issue · comments

In MV3+, the chrome.windows.create() return a Promise in the documentation

chrome.window.create()

But chrome-types shows wrong return type.

Wrong return type

Hi @SoaibHaque, what type has TypeScript assigned to your options object? There are multiple signatures for each API - it's possible that if options is not typed as chrome.windows.CreateData the incorrect signature is being used.