For chrome extension developed using typescript, we need a definition file called chrome.d.ts in typings folder for accessing web extension APIs like chrome.runtime.* or chrome.tabs.*.
For edge extension, developing in typescript, we need a definition file called browser.d.ts in typings folder for accessing web extension APIs like browser.runtime.*
How can we download this dependency using node package manager(npm). I added a reference to the file in my background.ts file of extension like:
/// reference path="typings/browser/browser.d.ts"
via Shivanshu Goyal
No comments:
Post a Comment