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
TypeScript Version: 2.1.4
Code
module MyModule { export function inject(target: any, key: string): void {} export class Leg {} export class Person { @inject leftLeg: Leg; } }
Compiled with: tsc --experimentalDecorators --emitDecoratorMetadata -target es5 app.ts
tsc --experimentalDecorators --emitDecoratorMetadata -target es5 app.ts
Expected behavior: The design:type metadata inserted uses type Object instead of the actual type
design:type
Object
__decorate([ inject, __metadata("design:type", Object) ], Person.prototype, "leftArm", void 0);
Actual behavior: The design:type metadata should be set to the correct type (Leg in this case)
Leg
__decorate([ inject, __metadata("design:type", Leg) ], Person.prototype, "leftArm", void 0);
Note: This was working in previous version (we were on 1.8.10) and broke after upgrading to 2.1.4
1.8.10
2.1.4
The text was updated successfully, but these errors were encountered:
Update current scope when visiting namespace elements
08e6b1b
Fixes #13098
@mhegazy Any idea when 2.1.5 is being released to npm?
Sorry, something went wrong.
sheetalkamat
No branches or pull requests
TypeScript Version: 2.1.4
Code
Compiled with:
tsc --experimentalDecorators --emitDecoratorMetadata -target es5 app.ts
Expected behavior:
The
design:type
metadata inserted uses typeObject
instead of the actual typeActual behavior:
The
design:type
metadata should be set to the correct type (Leg
in this case)Note: This was working in previous version (we were on
1.8.10
) and broke after upgrading to2.1.4
The text was updated successfully, but these errors were encountered: