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 (
constructor: undefined,
context: ClassFieldDecoratorContext<TargetType> & {
name: PropertyType;
},
context: ClassFieldDecoratorContext<TargetType>,
): void {
const _identifier = identifier ?? context.name;