在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jsmnbom/definitelytyped-firefox-webext-browser开源软件地址:https://github.com/jsmnbom/definitelytyped-firefox-webext-browser开源编程语言:TypeScript 99.5%开源软件介绍:DefinitelyTyped Firefox WebExt BrowserScript to generate type definitions for WebExtension Development in FireFox. See the output at: DefinitelyTyped/DefinitelyTyped/types/firefox-webext-browser. Install definitions using Currently based on UsageYou should only need to do this if you wanna update the definitions, to just use them, see the npm install line above. Install dependencies $ npm install Build typescript files. Either just once, or optionally watch for files changes. (execute only one of below commands) $ npm run once
$ npm run watch Download proper firefox sources to firefox/VERISION. See https://hg.mozilla.org/mozilla-unified/tags for available tags. $ node build/download.js --tag <TAG> --out <OUTDIR>
$ node build/download.js --tag FIREFOX_63_0b6_RELEASE --out schemas Then actually generate definitions $ node build/index.js --version <FIREFOX VERSION> --out <OUTPUT_FILE> [SCHEMA_FOLDER]...
$ node build/index.js --version 63.0 --out index.d.ts schemas/FIREFOX_63_0b6_RELEASE/{browser,toolkit} And place the generated index.d.ts in DefinitelyTyped/DefinitelyTyped/types/firefox-webext-browser. Note that for sending PRs to DefinitelyTyped you need to include why you changed. For simple updates (FF version changes), this can be easily generated and uploaded to gist using the included script (requires the gist tool and that you are logged in): diffgen FIREFOX_63_0b6_RELEASE FIREFOX_64_0b1_RELEASE |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论