With script tag:
This works in my index.html, but the SC variable is not accessible in any other pages.
var SC = require(‘soundcloud’);
As written, it does not compile, I believe because this isn’t how you load things with TypeScript. However, I changed to use import and created a new index.d.ts file for the soundcloud module, and this allowed compilation to pass. However, nothing after the initialize function is executed, which makes me think I’m doing something wrong with my TypeScript (unsurprising since I just hacked something).
I’m fine with either way, as long as it works Thanks!