MTG / essentia.js

JavaScript library for music/audio analysis and processing powered by Essentia WebAssembly
https://essentia.upf.edu/essentiajs
GNU Affero General Public License v3.0
645 stars 42 forks source link

Add TypeScript type definition file for index.js and add a TS project example #71

Open albincorreya opened 2 years ago

albincorreya commented 2 years ago

Currently, we distribute the TypeScript type definition (.d.ts) files separately for each module through our releases. Though devs can use these builds for using essentia.js on a TypeScript project like this example, adding an index.d.ts type definition file for index.js can make it easy for developers to integrate into a TS project as similar as in JS. This was mentioned in #46

It would be also nice to have a TypeScript project as an example in the repository for reference.

How?