Store the DI decorator's id in specific property (#5131).

This commit is contained in:
Asem Dreibati
2024-10-29 10:31:57 +03:00
parent f701d073d1
commit a1b438cea6
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export function createDecorator<T>(id: string): IServiceIdentifier<T> {
storeServiceDependency(decorator, target, index);
};
decorator.toString = () => id;
decorator._id = id;
serviceRegistry.set(id, decorator);
return decorator;