2

I have 2 files, one named MIDI.js and another named app.ts. The first is in javascript the second in typescript.

Inside my app.ts i'd like to call the functions that are defined in MIDI.js. I've attempted to add

/// <reference path="MIDI.js"/>

to my typescript file but it says it won't import non-typescript files. I rename MIDI.ts but then Visual studio attempts to compile MIDI.js and spews out all sorts of errors.

I've searched everywhere on how to solve such a simple scenario but found no straightforward answers.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.