我有一个异步函数,在这个函数中,我调用了另一个返回promise的函数,也调用了另一个异步函数。(rectPointer); // the promise_animate return a promise await asyncAwaitRepeat所以我使用了回调 function promise_animate (index)
class UserService { return await new Promise<number>(res) => setTimeout(() => res(1)}, 1000));}
上面的代码生成了Type 'number' is not a valid async function returntype in ES5/ES3 because it does not r