radzserg / rsdi3 Goto Github PK
View Code? Open in Web Editor NEWTypeScript dependency injection container.
License: Apache License 2.0
TypeScript dependency injection container.
License: Apache License 2.0
Just wanted to drop in and congratulate you on the next version. We are using your RSDI in our production applications. We use Vue and Clean Architecture and your solution has helped us keep the DI implementation separate from the infrastructure layer. I was searching for such a solution and by accident stumbled on yours. Great job.
If you need any feedback or help my email is dima[at]dreamvention.com
I need some help with this:
[ERROR] 01:43:45 Error: require() of ES Module \node_modules\rsdi\dist\index.js from \src\infrastructure\di.ts not supported.
Instead change the require of index.js in \src\infrastructure\di.ts to a dynamic import() which is available in all CommonJS modules.
I updated the version and make all adjustments needed
This expression is not constructable.
Type 'typeof import("..../node_modules/rsdi/dist/index")' has no construct signatures.ts
based on the documentation DIContainer should be the default export.
import DIContainer from 'rsdi';
export type AppDIContainer = ReturnType<typeof configureDI>;
...
but if we check the code, it is a named export https://github.com/radzserg/rsdi3/blob/main/src/DIContainer.ts
line 21 export class DIContainer<ContainerResolvers extends ResolvedDependencies = {}> {
import { DIContainer} from 'rsdi';
fixes it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.