type Animal = { name: string } function getBear(this: Animal) : Animal { this.name = "hi" return this } console.log(getBear().name)
谁能帮我解决这个问题,我无法调用 getBear 函数
javascript typescript typescript-typings
javascript ×1
typescript ×1
typescript-typings ×1