Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/violentmonkey/types
Type declaration for GM_* APIs in Violentmonkey.
https://github.com/violentmonkey/types
Last synced: 2 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T17:45:54.000Z (3 months ago)
- Last Synced: 2024-10-25T18:44:42.853Z (3 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
![NPM](https://img.shields.io/npm/v/@violentmonkey/types.svg)
![License](https://img.shields.io/npm/l/@violentmonkey/types.svg)
![Downloads](https://img.shields.io/npm/dt/@violentmonkey/types.svg)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`.