문제

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
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top