JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 466
  • Score
    100M100P100Q98562F
  • License ISC

Type declaration for GM functions in Violentmonkey

Package Exports

    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

    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.