How do i get access to classes in another .ts
file in TypeScript?
e.g.
app.ts
window.onload = () => {
/// <reference path="TilingEngine/SofRenderer.ts" >
var drawingTool = new SofRenderer();
};
TilingEngine/SofRenderer.ts
class SofRenderer {
}
Fails to compile, with the error:
Could not find symbol 'SofRenderer'.
See also
- How can I import an external file with TypeScript? (i'm not using node)
- How do I import other TypeScript files? (i'm not using modules)