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
which is of course not what I want. The object some_const_1 should be accessed in generated code using it's default value, since it's a constant - some_const_1.default.
If this code is compiled using normal typescript, the output is like this:
Almost posted this issue to typescript main repo, good thing I checked first - this only happens under ts-node. Here is the issue text:
Code
Expected behavior:
Value has same structure as in declaration.
Actual behavior:
Original value
someConst
is not present. Insteadsome_const_1
is present with the following structure:After merging with some other object like above the result is
which is of course not what I want. The object
some_const_1
should be accessed in generated code using it's default value, since it's a constant -some_const_1.default
.If this code is compiled using normal typescript, the output is like this:
Which is what I expect. However under ts-node that doesn't seem to be the case.
The text was updated successfully, but these errors were encountered: