Package Exports
- @violentmonkey/types
- @violentmonkey/types/index.d.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@violentmonkey/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@violentmonkey/types
Type declaration for GM_* APIs in Violentmonkey.
The APIs should be almost the same as those in Tampermonkey, so @types/tampermonkey should also work.
Installation
$ npm i @violentmonkey/typesAdd @violentmonkey/types to a .d.ts file.
For example, create src/vm.d.ts with the following content:
import '@violentmonkey/types';Make sure the .d.ts file is included in your tsconfig.json.