Pregunta

How do I make one class Server visible inside another class Database in Typescript? When I try to create an instance of var theServer = new Server(); inside the Database class I get the following error:

ReferenceError: Server is not defined
¿Fue útil?

Solución

You need to have script tags in your page for both Database.js and Server.js.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top