新建打字稿(而不是面向对象的设计)的财产“仓库”我不明白发生了什么打字稿错误无法读取未定义
文件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)
任何想法?