Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 30e25ac

Browse files
committed
fix(core): workaround for typescript@1.7.3 breakage #5784
I don't understand why I need to declare the type-here, but it resolves the issue. Looks like a bug in tsc. Fixes #5784
1 parent 4975cb9 commit 30e25ac

File tree

1 file changed

+1
-1
lines changed
  • modules/angular2/src/core/metadata

1 file changed

+1
-1
lines changed

modules/angular2/src/core/metadata/di.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {DependencyMetadata} from 'angular2/src/core/di/metadata';
3232
export class AttributeMetadata extends DependencyMetadata {
3333
constructor(public attributeName: string) { super(); }
3434

35-
get token() {
35+
get token(): AttributeMetadata {
3636
// Normally one would default a token to a type of an injected value but here
3737
// the type of a variable is "string" and we can't use primitive type as a return value
3838
// so we use instance of Attribute instead. This doesn't matter much in practice as arguments

0 commit comments

Comments
 (0)