-
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
wrong type ordering generated by tsc
?
#60044
Comments
Duplicate of #27519. The error is different, the cause is the same. |
What's the solution? |
I think it should work to use a method instead of the object directly, e.g. : |
build error:
|
These errors are quite clear and an issue in your code / with the library you use. It should be obvious that you can't just change the parameter to |
|
Yes, hence I wrote:
You need to adjust your code accordingly. |
I am a noob in this. Can you enlighten me on this? |
It looks like this is a question rather than a bug report. This issue tracker is for tracking bugs and active work on TypeScript itself, rather than a general forum for programmers using TypeScript to get help or ask questions. You can ask questions on sites like Stack Overflow. We are not able to provide one-on-one support on the issue tracker. Please read the issue template carefully - it has important information on what kinds of reports can be acted on here, as well as links to useful TypeScript resources. Thanks! |
🔎 Search Terms
tsc node.js
🕗 Version & Regression Information
⏯ Playground Link
https://github.com/khteh/Node.JSRestAPI
💻 Code
State.ts
:StateContext.ts
:Generated
.js
code:🙁 Actual behavior
🙂 Expected behavior
No runtime error, duh!
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: