Skip to content

Importation into typescript project returns undefined instead of the expected WebMidi singleton #82

@the-simian

Description

@the-simian

This might be an easy one to fix, but I am using typescript and webpack. when I use

import WebMidi from 'webmidi'

I just get undefined !

What's weird is I do see the type descriptions in my editor
image

I can see this in the webmidi.d.ts file

/** The `webmidi` module is a singleton of the `WebMidi` class */
declare const webmidi: WebMidi

export default webmidi;

Yet, here is the actual output.
image

using all lowercase (as in the example) also produces identical results.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions