我有一个(费时)计算,类似的东西: async calculation(input: MyInputType): Promise<MyOutputType> {
// fetch some infos from an HTTP endpoint
// calculate result by combining received infos with input
ret
假定以下打字稿示例 class Animal {
public name: string;
constructor() {
console.log(this.name);
}
}
class Snake extends Animal {
public name = 'BeatSSS';
}
let someSnake = new S