I'm trying to imitate something very well-known in mock practice for Java applications, but this time using TypeScript and JEST. Suppose I have a clas ...
I'm trying to imitate something very well-known in mock practice for Java applications, but this time using TypeScript and JEST. Suppose I have a clas ...
I have a project using tsyringe and a RESTFul API. Now i should to add a GraphQL API using the type-graphql but in our documentation no have some exam ...
I recently started using tsyringe and I came across an issue with how dependencies are resolved. A reproducible scenario is explained below: class Cl ...
I'm using tsyringe for dependency injection and trying to run unit tests. The class is in ts and the test file is in js. When I try to run my tests by ...
I'm working on small project for school and I'm new to express and dependency injection. I started this little project just to get an idea of how it w ...
I am using tsyringe as a dependency container and I have 2 classes. AccountingService and TransactionService. I am listening to the event triggered in ...
I'm learning DI with tsyringe. I'm also totally new to the concept of DI. The following snippet works and the container.resolve(Foo) properly instant ...
I’m developing a backend server, using Postgres as my database for a friend’s game project. Everything is going well but there are a couple of feature ...
I am clearly misunderstanding how TSyringe is supposed to resolve classes with dependencies. I created a minimal repro. In my index.tsx, I do as they ...
I have an app with multiple different components, each component having their own dependency and am using TSyringe to manage dependency injection. One ...
I'm facing one problem, in which I have lots of Repositories(which they are TS Classes that implements one interfaces, they are typeorm repositories c ...
I am using express and tsyringe for dependency injections. When I try to use the service dependency on my controller I get an error UnhandledPromiseR ...
I have a service to handle some data-fetching and I am trying to use tsyringe with it, the function to create the service gets called multiple times ( ...
I'm having this trouble: Container Controller UseCase It was working normally on windows, but now I've changed to mac and stopped working. ...
I am currently having trouble with my React TypeScript project. I created my project with npx create-react-app my-app --template typescript. I recen ...
I am having trouble implementing singleton, because class marked as @singleton() is being recreated on every resolve(). Here is the example // Foo.t ...
i've been using sequelize-typescript, tsyringe on a refactor work here and i got a pretty interesting bug here. Well normally all of my repository con ...
I'm trying to create a custom decorator for tsyringe to inject through properties. My code: Service Calling Class Console Output Current ...
I'm developing an application using dependency injection with tsyringe. That's the example of a service that receives the repository as a dependency: ...
I am trying to build and example to understand how the DI framework/library works, but i am encountering some problems. I have this interface with tw ...