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, 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(