rzvxa / dwait

Deferred async operation made easy in JavaScript

Home Page:https://www.npmjs.com/package/dwait

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with functions with Promise return type

rzvxa opened this issue · comments

Description

A simple test like this will fail on the type-checking step.

class A {
  foo = 1
  async addFoo () {
    this.foo += 1
  }
}
dwait(new A()).addFoo()