genioc
lambda-ioc
genioc | lambda-ioc | |
---|---|---|
1 | 2 | |
8 | 9 | |
- | - | |
2.2 | 0.0 | |
9 months ago | 23 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
genioc
-
[TS] Java-like, decorator-free simple IOC container
Note: the reason "IUserRepository" is passed here as a string to bind() is because Typescript interfaces are not "real" types or symbols, unlike classes, so therefore we must use the string name of them. However, the autogenerated code contains simple union-type that makes sure you pass a correct name for the interface to bind() The key here is that there is an additional pre-preprocessing step that uses Typescript compiler to parse the arguments of each constructor and generates a project-specific IOC container code with a tree of depenedencies, allowing to resolve them in runtime (basically an additional .ts file in your source code folder). You can also run it in watch mode, so it actively rebuilds the tree as you edit the code in project, or just make it a required step before running your app in npm start for example. The example of auto generated container code, that you import in your project can be found there: Github
lambda-ioc
-
I wrote an strongly typed IoC container library (based on Diddly) for Deno & Node
The "final" result is a bit more feature complete, although much uglier if you check its internals (it's crazy how many type annotations I wrote there, and how complex they are), and I started to use it for real life projects :) : https://github.com/Coder-Spirit/lambda-ioc
- Is there any known way to measure coverage of... types?
What are some alternatives?
ioc - :unicorn: lightweight (<1kb) inversion of control javascript library for dependency injection written in typescript
InversifyJS - A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
Ditox.js - Dependency injection for modular web applications
eslint-plugin-expect-type - ESLint plugin with ^? Twoslash, $ExpectError, and $ExpectType type assertions. đ§Š
diod - A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.
nominal - Powerful nominal types for your Typescript project
dandi - đťA modular DI, MVC, and Model binding/validation framework for NodeJS and TypeScript or ES6
tsd - Check TypeScript type definitions
di-compiler - A Custom Transformer for Typescript that enables compile-time Dependency Injection
diddly - Ćđ Pure functional dependency injection for TypeScript
iti - ~1kB Dependency Injection Library for Typescript and React with a unique support of async flow
sum-types - Safe, ergonomic, non-generic sum types in TypeScript.