You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, lovely library! Thanks for all the work on this.
I'm working on a general timing library for Web Audio / Web MIDI applications, and would like to have intellisense and type checking for Interfaces that make up the webmidi package.
As an example, I can say const input = webmidi.inputs[0]. TypeScript indicates that input is of type Input, but I cannot write functions which accept the Input type as a parameter, and have to either manually copy the webmidi.d.ts to my source directory, or use the any type annotation.
I'm happy to submit a pull request if this is not a current priority!
The text was updated successfully, but these errors were encountered:
I do not use TypeScript, so I'm not too familiar with it. If you submit a PR, I will happily merge it. The original webmidi.d.ts file has been graciously contributed by @mmmveggies
I tentatively added a types directory with d.ts files for all current classes (this is what the TypeScript compiler outputted). Is the usual practice to have a single index.d.ts file? In any case, if you want to give it go, be my guest!
Hello, lovely library! Thanks for all the work on this.
I'm working on a general timing library for Web Audio / Web MIDI applications, and would like to have intellisense and type checking for Interfaces that make up the
webmidi
package.As an example, I can say
const input = webmidi.inputs[0]
. TypeScript indicates thatinput
is of typeInput
, but I cannot write functions which accept theInput
type as a parameter, and have to either manually copy thewebmidi.d.ts
to my source directory, or use theany
type annotation.I'm happy to submit a pull request if this is not a current priority!
The text was updated successfully, but these errors were encountered: