thunderbird-web-ext-types
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

thunderbird-web-ext-types

Build Status Npm Version

TypeScript type definitions for Thunderbird WebExtensions, based on webext-docs 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 thunderbird-web-ext-types --dev
 
# npm version 
npm install --save-dev thunderbird-web-ext-types

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

# yarn version 
yarn add ctrlxc/thunderbird-web-ext-types --dev
 
# npm version 
npm install --save-dev ctrlxc/thunderbird-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/thunderbird-web-ext-types"],
  }
}

Package Sidebar

Install

npm i thunderbird-web-ext-types

Weekly Downloads

2

Version

1.0.0

License

MPL-2.0

Unpacked Size

104 kB

Total Files

9

Last publish

Collaborators

  • ctrlxc