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
Problem:
In js/ts there are new User() and new User.
new User()
new User
How should we handle nullary applications?
The text was updated successfully, but these errors were encountered:
Solution 1:
Do not support nullary class application.
Because from the following example, we see that, new ABC() is only useful when all properties are fulfilled.
new ABC()
class ABC { a: String = "a" b: String = "b" c: String = "c" } check new ABC(): ABC
But in this case, we can simply use object:
let abc = { a: "a", b: "b", c: "c", }
Sorry, something went wrong.
No branches or pull requests
Problem:
In js/ts there are
new User()
andnew User
.How should we handle nullary applications?
The text was updated successfully, but these errors were encountered: