-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
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
Functional Instantiation #57713
Comments
This is working as intended. See #13013 (comment). You can add an explicit |
It actually is not : Can you please explain this !? As far as I know, the constructor should have been by default referred to the function prototype constructor property. |
TypeScript only supports classes written with the |
I imagine an interface with a construct signature could do the trick if we had Describe function signature using an interface #34319 |
This issue has been marked as "Working as Intended" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
π Search Terms
functional instantiation, es5
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
new
expression whose target lacks a constructor signature. Switching back to normal JS works as expected.π Expected behavior
Should compile without issues. It should point to the constructor by default present in the prototype object.
Additional information about the issue
Typescript config :
No response
The text was updated successfully, but these errors were encountered: