Skip to content

TypeScript type definitions for WebExtensions

License

Notifications You must be signed in to change notification settings

akuntsch/web-ext-types

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-ext-types

Build Status Npm Version

TypeScript type definitions for WebExtensions

Requirements

As this library is using the object type, typescript should at least be on version 2.2 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 michael-zapata/web-ext-types --dev

# npm version
npm install --save-dev michael-zapata/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": ["@types", "node_modules/web-ext-types"],
  }
}

Completion status

The API is fully implemented aside from browser.webRequest, which is still in progress. This is based on MDN's documentation.

About

TypeScript type definitions for WebExtensions

Resources

License

Stars

Watchers

Forks

Packages

No packages published