Closed davidbielik closed 1 year ago
Current type definition for browser.alarms.get return Promise<Alarm>
browser.alarms.get
Promise<Alarm>
But if you were you get an alarm that does not exist, it returns undefined:
undefined
console.log(await browser.alarms.get("i-dont-exist"));
How can we get this type updated (and therefore updated in @types/webextension-polyfill corrected?
@types/webextension-polyfill
Thanks for the report, will be resolved when the next version gets out
Current type definition for
browser.alarms.get
returnPromise<Alarm>
But if you were you get an alarm that does not exist, it returns
undefined
:How can we get this type updated (and therefore updated in
@types/webextension-polyfill
corrected?