-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
I seem to be hitting an error when I am trying to inject a property on my class.
export class ADFSRepository extends AuthFacade {
@Inject
private readonly dataSource: ADALDataSource
}
The injected value is bound, it is an abstract class, and it works perfectly fine if I force the Inject declaration to always go to the property declaration here
typescript-ioc/src/decorators.ts
Lines 149 to 150 in 623a58a
if (args.length === 2 || (args.length === 3 && typeof args[2] === 'undefined')) { | |
return InjectPropertyDecorator.apply(this, args); |
The issue seems to be that my
args
is an array of length 3, where the third argument is an object.
0: AuthFacade {constructor: ƒ, signInWithUsername: ƒ}
1: "dataSource"
2: {configurable: true, enumerable: true, writable: true, initializer: null}
length: 3
aopanasenko, ocarlott, hejianxian, danielgelling and juanrgm
Metadata
Metadata
Assignees
Labels
No labels