@dipscope/type-manager
Version:
Transform JSON strings or plain objects into JS class instances.
31 lines • 1.18 kB
JavaScript
export class UnresolvedInjectState {
constructor(injectMetadata) {
this.injectMetadata = injectMetadata;
return;
}
get key() {
let resolvedInjectState = this.resolvedInjectState;
if (resolvedInjectState === undefined) {
resolvedInjectState = this.injectMetadata.resolveInjectState();
this.resolvedInjectState = resolvedInjectState;
}
return resolvedInjectState.key;
}
get typeArgument() {
let resolvedInjectState = this.resolvedInjectState;
if (resolvedInjectState === undefined) {
resolvedInjectState = this.injectMetadata.resolveInjectState();
this.resolvedInjectState = resolvedInjectState;
}
return resolvedInjectState.typeArgument;
}
get typeMetadata() {
let resolvedInjectState = this.resolvedInjectState;
if (resolvedInjectState === undefined) {
resolvedInjectState = this.injectMetadata.resolveInjectState();
this.resolvedInjectState = resolvedInjectState;
}
return resolvedInjectState.typeMetadata;
}
}
//# sourceMappingURL=unresolved-inject-state.js.map