https://github.com/violentmonkey/types
Type declaration for GM_* APIs in Violentmonkey.
https://github.com/violentmonkey/types
Last synced: 3 months ago
JSON representation
Type declaration for GM_* APIs in Violentmonkey.
- Host: GitHub
- URL: https://github.com/violentmonkey/types
- Owner: violentmonkey
- Created: 2022-07-29T10:40:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T17:45:54.000Z (9 months ago)
- Last Synced: 2024-10-25T18:44:42.853Z (8 months ago)
- Homepage: https://violentmonkey.github.io/types/
- Size: 98.6 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
```bash
$ npm i @violentmonkey/types
```Add `@violentmonkey/types` to a `.d.ts` file.
For example, create `src/vm.d.ts` with the following content:
```typescript
import '@violentmonkey/types';
```Make sure the `.d.ts` file is included in your `tsconfig.json`.