Container.validate() throws an error for any unmanaged dependencies
Closed this issue · 0 comments
mscharley commented
Describe the bug.
Any unmanaged dependencies will generate a failure to check for dependencies.
Steps to reproduce
@injectable(unmanaged(process))
class Us {
}
container.bind(Us).toSelf();
await container.get(Us); // This succeeds
container.validate(); // Error: Unbound dependency: Constructor<Us> => Token<Symbol(unmanaged:[object process])>
Expected behaviour
No response
DOT
1.4.4
TypeScript
5.2.2
Decorator type
Typescript Experimental
Node
16
Add any other context about the problem here.
No response