Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/violentmonkey/types

Type declaration for GM_* APIs in Violentmonkey.
https://github.com/violentmonkey/types

Last synced: 4 days ago
JSON representation

Type declaration for GM_* APIs in Violentmonkey.

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`.