Nitrogenous Polymorphic Molecule

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

web-ext-types

3.2.1 • Public • Published

web-ext-types

Build Status Npm Version

TypeScript type definitions for WebExtensions, based on MDN's documentation.

Requirements

As this library is using the object type and default values for generics, typescript should at least be on version 2.3 to get the definitions to work.

Install it

There is an npm package available, which means you can grab it from there:

# yarn version 
yarn add web-ext-types --dev
 
# npm version 
npm install --save-dev web-ext-types

Though if you want to use the git version, simply do:

# yarn version 
yarn add kelseasy/web-ext-types --dev
 
# npm version 
npm install --save-dev kelseasy/web-ext-types

As this is not a DefinitelyTyped package, you will have to include the type definition in your tsconfig.json by hand, via a typeRoots option.

{
  "compilerOptions": {
    // You have to explicitly set @types to get DefinitelyTyped type definitions
    "typeRoots": ["node_modules/@types", "node_modules/web-ext-types"],
  }
}

install

npm i web-ext-types

Downloadsweekly downloads

795

version

3.2.1

license

MPL-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability