We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently returns Car
The text was updated successfully, but these errors were encountered:
microsoft/TypeScript#5863
edit: in fact, it is not a type-only issue as the inherited static Create returns an instance of the parent class (i.e. Car).
Sorry, something went wrong.
workaround: wrap in new Heli
new Heli
let heli = new Heli(Car.Create(....));
same is true for other derived classes (Boat, Tank, Plane, etc)
Fixed in 1.2.0
No branches or pull requests
currently returns Car
The text was updated successfully, but these errors were encountered: