A class constructor with a binding that determines how to resolve it as a DependencyKey.Of<T>.
binding
DependencyKey.Of<T>
class MyClass1 { constructor(x: number, y: string) {} static inject = Inject.construct(this, NumberKey, StringKey) } class MyClass2 { static inject = Inject.construct(MyClass3, NumberKey, StringKey, BooleanKey) } class MyClass3 extends MyClass2 { constructor(x: number, y: string, z: boolean) { super() } } Copy
class MyClass1 { constructor(x: number, y: string) {} static inject = Inject.construct(this, NumberKey, StringKey) } class MyClass2 { static inject = Inject.construct(MyClass3, NumberKey, StringKey, BooleanKey) } class MyClass3 extends MyClass2 { constructor(x: number, y: string, z: boolean) { super() } }
Rest
Optional
Readonly
A ComputedKey that, if provided, specifies how to resolve this class if no provider was supplied.
A Scope or ScopeList that, if provided, specifies the scope in which an instance of this class will be resolved and stored.
Generated using TypeDoc
A class constructor with a
binding
that determines how to resolve it as aDependencyKey.Of<T>
.Example