fix: Test

This commit is contained in:
2024-08-28 15:48:45 +02:00
parent b3de04e3f9
commit 16bc8e4187

View File

@@ -52,7 +52,7 @@ export function Inject<TargetType, DependencyType, PropertyType>(
): (
this: TargetType,
initialValue: PropertyType | undefined,
) => PropertyType | undefined {
) => PropertyType {
const _identifier = identifier ?? context.name;
if (_identifier == null && necessary === true)
@@ -73,7 +73,7 @@ export function Inject<TargetType, DependencyType, PropertyType>(
return function (
this: TargetType,
initialValue: PropertyType | undefined,
): PropertyType | undefined {
): PropertyType {
let instance: DependencyType | PropertyType | undefined;
const dependency: DependencyType | undefined = tryAndCatch(