Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.24k stars 963 forks source link

Incorrect import causes typescript compilation issue #1215

Open IARI opened 8 months ago

IARI commented 8 months ago

Describe the bug

In https://github.com/Tonejs/Tone.js/blob/dev/Tone/core/type/Units.ts there is the import statement

import { Note } from "./NoteUnits";

This causes a TS compilation error error TS1484: 'Note' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

To Reproduce

Add tone.js as a dependency in a project with 'verbatimModuleSyntax' is enabled.