-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
"emitDecoratorMetadata" emits "Object" for "design:type" when type is inferred #18995
Comments
I'm just going to point out that fixing this is, by definition, type directed emit. |
@rbuckton was of the opinion that we could add extra check specifically looking to serialize the type from the literal kind of an initializer; but that we won't actually go and lookup type information for the initializer, as that's foo far down the type-directed path (and leads to needing to include the type system in file dependency analysis). |
looking at this again. this is behaving as intended. we only serialize explicit types. implicit types are not serialized. this is the only way to make scenarios like single-file transpile works. |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.5.3
Code
tsconfig.json
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: