DeepSpeech/native_client/javascript
2020-04-29 13:43:28 +02:00
..
binding.gyp Update Python, NodeJS and ElectronJS to latest stables 2020-01-13 16:17:13 +01:00
client.ts Fix #2888: Use start-after / end-before for API example line references 2020-04-07 14:01:09 +02:00
deepspeech.i Exposing ErrorCode API in Tree bindings (#2806) 2020-03-21 15:40:39 +01:00
index.d.ts Return Stream wrapper in JS Model.createStream 2020-04-29 13:43:28 +02:00
index.js Return Stream wrapper in JS Model.createStream 2020-04-29 13:43:28 +02:00
Makefile Fix #2885: Improve ds-swig integration 2020-04-08 18:48:12 +02:00
package.json.in Add TypeScript CI 2020-04-06 22:12:00 +02:00
README.md Docs centered on ReadTheDocs instead of GitHub 2020-04-27 20:31:11 +02:00
tsconfig.json Add TypeScript CI 2020-04-06 22:12:00 +02:00

Full project description and documentation on https://deepspeech.readthedocs.io/.

Generating TypeScript Type Definitions

You can generate the TypeScript type declaration file using dts-gen. This requires a compiled/installed version of the DeepSpeech NodeJS client.

Upon API change, it is required to generate a new index.d.ts type declaration file, you have to run:

npm install -g dts-gen
dts-gen --module deepspeech --file index.d.ts

Example usage

See client.ts