Promise executor functions should not be async.

解决方案:

// eslint-disable-next-line no-async-promise-executor
new Promise<boolean>(async (resolve, reject) => {
  ...
}),

.

posted @ 2022-09-01 19:32  每天都要进步一点点  阅读(3496)  评论(0)    收藏  举报