Wrong return type of chrome.windows.create()
SoaibHaque opened this issue · comments
Soaib Haque commented
In MV3+, the chrome.windows.create() return a Promise in the documentation
But chrome-types shows wrong return type.
Oliver Dunk commented
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.