a-edge-extends-types
v0.0.21
Published
You must be looking for `@types/chrome`. This is the zn-CN version // some (not all) edge extends types
Downloads
12
Maintainers
Readme
a edge extends types
you may be looking for @types/chrome
It's more like a Chinese version @types/chrome
just a little bit, only some I used was given
Development reference
language
install
npm install --save a-edge-extends-types@latest && npx immm
use
must create chrome.d.ts
file, file context:
import { Chrome } from 'a-edge-extends-types';
declare global {
interface Window {
chrome: Chrome;
}
const chrome: Chrome;
}
The package automatically rewrites the file when it is installed or updated, if it doesn't you can use npx immm
create this file,and include in tsconfig.json
illustrate
Only a very small part of the list is given at the moment, as shown below:
action
(none)contextMenus
devtools
(all)i18n
(all)tts
(all)runtime
onload
sendMessage
onMessage
addListener
storage
(all)tabs
(all)
If you have any questions, you can directly submit feedback