diff --git a/modules/angular2/src/core/metadata/di.ts b/modules/angular2/src/core/metadata/di.ts index a4dbf8363d..4403735ff0 100644 --- a/modules/angular2/src/core/metadata/di.ts +++ b/modules/angular2/src/core/metadata/di.ts @@ -32,7 +32,7 @@ import {DependencyMetadata} from 'angular2/src/core/di/metadata'; export class AttributeMetadata extends DependencyMetadata { constructor(public attributeName: string) { super(); } - get token() { + get token(): AttributeMetadata { // Normally one would default a token to a type of an injected value but here // the type of a variable is "string" and we can't use primitive type as a return value // so we use instance of Attribute instead. This doesn't matter much in practice as arguments