Skip to content

About

Typings generator for Web Extension schema files.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

Repository files navigation

web-extension-typings-generator

Generates a TypeScript typings file (.d.ts) from a folder of .json API schema files, as provided in thunderbird/webext-schemas or can be found in the Firefox codebase in the folders /browser/components/extensions/schemas and /toolkit/components/extensions/schemas.

The structure and API Schema is documented in WebExtensions API Development.

Usage

Generate typings file from web extension schema files.

Usage: generate-web-extension-typings --schemaDir <dir> --outfile <file>

  --schemaDir <dir>    The directory containing the schema files (*.json)
  --outfile <file>     The output file to write the typings to
  --force              Create the directories if they does not exist
  --help               Show this help message

License

web-extension-typings-generator is licensed under MPL 2.0.

About

Typings generator for Web Extension schema files.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages