fix: Fix typing in injector

This commit is contained in:
2024-08-28 15:06:38 +02:00
parent ab07e03c0f
commit 45bec44a2d

View File

@@ -48,9 +48,7 @@ export function Inject<TargetType, DependencyType, PropertyType>(
) { ) {
return function ( return function (
constructor: undefined, constructor: undefined,
context: ClassFieldDecoratorContext<TargetType> & { context: ClassFieldDecoratorContext<TargetType>,
name: PropertyType;
},
): void { ): void {
const _identifier = identifier ?? context.name; const _identifier = identifier ?? context.name;