You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
The constructor method may have a return value. While the base class may return anything from its constructor, the derived class must return an object or undefined, or a TypeError will be thrown.
I'm not saying it's a great idea to do so, but it's not particularly harmful to the type safety of the program if the returned object is of the same class (that the constructor would already return).
Expected result
The rule should either avoid erroring on returned objects (at least when the return type matches the constructor's class), or the documentation should be updated.