Good morning! I have the following problem:
I am starting in typescript and to start working I will be going through some of my javascript of a project that I have running.
For this I started with my Main.js changing the name to .ts and moving it to a folder where I will have all the source typeScript (within the same project)
Within my main file I make references to other classes, I put here part of the code:
var SiteController=function() {
this.eventManager = new EventManager(this);
}
The problem is that typescript says it can not find EventManager.
What I do not know is if I do not have to do some kind of import of all the javascript I have in my other folder. The error that throws me is the following:
file: 'file: ///d%3A/_PROYECTOS/turner/TURNER_WB_TBBT_TriviaFan/deploy/js/typeScript/SiteController.ts' severity: 'Error' message: 'Can not find name' EventManager '.' source: 'ts'
I imagine it should be something like
import '../ js / bin /';
but the truth is that I do not know how I have to do to import all my javascript classes either from my own or from other libraries and not have this error
the folder structure I handle is:
deploy
deploy/js
deploy/js/typeScript
deploy/js/bin
Within typescript are the .ts files and inside bin there are folders with third-party libraries or own classes
since thank you very much