0.0.9 • Published 9 years ago

electron-definitelytyped v0.0.9

Weekly downloads
9
License
MIT
Repository
-
Last release
9 years ago

electron-DefinitelyTyped Build Status

Parse Electron's JSON API documentation and spit out a typescript definition file

Installation

npm install electron-DefinitelyTyped --save

CLI Usage

To generate the definitions

electron-DefinitelyTyped --in=path/to/electron/api.json --out=path/to/electron.d.ts

Any warnings during the generation can normally be ignored unless it actually throws an error

Programmatic Usage

The module exports a function that parses a given API JSON object and returns an array of lines to create the definition file

const generateDefinitions = require('electron-DefinitelyTyped')
const apiPath = './vendor/electron/docs/api.json'

const definitionLines = generateDefinitions(require(apiPath))
// definitionLines will be an array of file lines

License

MIT

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago