新建打字稿(而不是面向對象的設計)的財產「倉庫」我不明白髮生了什麼打字稿錯誤無法讀取未定義
文件application.ts
class
APPLICATION{
constructor(){
console.log("constructor APPLICATION")
this.database = new REPOSITORY
}
database: REPOSITORY
}
new APPLICATION
import { REPOSITORY } from "./repository"
文件repository.ts
export
class
REPOSITORY {
constructor() {
console.log("constructor de REPOSITORY")
}
}
和我得到的錯誤
this.database = new repository_1.REPOSITORY;
^
類型錯誤:無法讀取性能在新的應用的不確定 '倉庫'(Z:\文檔\披\Développement公司\打字稿\測試\ application.js中:6:41)
任何想法?