We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4975cb9 commit 30e25acCopy full SHA for 30e25ac
modules/angular2/src/core/metadata/di.ts
@@ -32,7 +32,7 @@ import {DependencyMetadata} from 'angular2/src/core/di/metadata';
32
export class AttributeMetadata extends DependencyMetadata {
33
constructor(public attributeName: string) { super(); }
34
35
- get token() {
+ get token(): AttributeMetadata {
36
// Normally one would default a token to a type of an injected value but here
37
// the type of a variable is "string" and we can't use primitive type as a return value
38
// so we use instance of Attribute instead. This doesn't matter much in practice as arguments
0 commit comments