@types/webextension-polyfill version: 0.12.1
webextension-polyfill version: 0.12.0
The MDN documentation for the webextension-polyfill references the management.uninstall() method: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/management/uninstall
However, neither the management.d.ts nor the browser-polyfill.js files include this method. (See Management.Static type.)
It is currently necessary for us to cast the browser.management reference to a chrome.management type in order to satisfy TypeScript:
(browser.management as unknown as typeof chrome.management).uninstall(extensionId);
Is this the expected behavior?
@types/webextension-polyfillversion:0.12.1webextension-polyfillversion:0.12.0The MDN documentation for the
webextension-polyfillreferences themanagement.uninstall()method: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/management/uninstallHowever, neither the
management.d.tsnor thebrowser-polyfill.jsfiles include this method. (SeeManagement.Statictype.)It is currently necessary for us to cast the
browser.managementreference to achrome.managementtype in order to satisfy TypeScript:(browser.management as unknown as typeof chrome.management).uninstall(extensionId);Is this the expected behavior?