Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong return type of chrome.windows.create() #69

Open
SoaibHaque opened this issue May 8, 2024 · 1 comment
Open

Wrong return type of chrome.windows.create() #69

SoaibHaque opened this issue May 8, 2024 · 1 comment

Comments

@SoaibHaque
Copy link

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

@oliverdunk
Copy link
Member

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.

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

No branches or pull requests

2 participants