##// END OF EJS Templates
fixed "singleton" activation type handling in container configuration...
fixed "singleton" activation type handling in container configuration makeResolver helper converted to async fixed passing parameters to a factory in the container compatibility improvements with previous versions of the library

File last commit:

r49:1a91da7b15f7 di-typescript
r65:0c74a0572161 v1.2.13 default
Show More
ValueDescriptor.ts
17 lines | 294 B | video/mp2t | TypeScriptLexer
/ src / main / ts / di / ValueDescriptor.ts
import { Descriptor } from "./interfaces";
export class ValueDescriptor implements Descriptor {
_value;
constructor(value) {
this._value = value;
}
activate() {
return this._value;
}
toString() {
return `@type=${typeof this._value}`;
}
}