fix: Test
This commit is contained in:
@@ -52,7 +52,7 @@ export function Inject<TargetType, DependencyType, PropertyType>(
|
|||||||
): (
|
): (
|
||||||
this: TargetType,
|
this: TargetType,
|
||||||
initialValue: PropertyType | undefined,
|
initialValue: PropertyType | undefined,
|
||||||
) => PropertyType | undefined {
|
) => PropertyType {
|
||||||
const _identifier = identifier ?? context.name;
|
const _identifier = identifier ?? context.name;
|
||||||
|
|
||||||
if (_identifier == null && necessary === true)
|
if (_identifier == null && necessary === true)
|
||||||
@@ -73,7 +73,7 @@ export function Inject<TargetType, DependencyType, PropertyType>(
|
|||||||
return function (
|
return function (
|
||||||
this: TargetType,
|
this: TargetType,
|
||||||
initialValue: PropertyType | undefined,
|
initialValue: PropertyType | undefined,
|
||||||
): PropertyType | undefined {
|
): PropertyType {
|
||||||
let instance: DependencyType | PropertyType | undefined;
|
let instance: DependencyType | PropertyType | undefined;
|
||||||
|
|
||||||
const dependency: DependencyType | undefined = tryAndCatch(
|
const dependency: DependencyType | undefined = tryAndCatch(
|
||||||
|
Reference in New Issue
Block a user