Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 662 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 662 Bytes

@violentmonkey/types

NPM License Downloads

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/types

Add @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.