@fougere/container
Fougere's DI container: resolution by type, wired from the AST scan. Zero dependencies.
Entries: @fougere/container
What you import
| name | |
|---|---|
ContainerError | |
createContainer |
Types
TypeScript types only — they do not run. Import them with import type to type your own code: a variable, a parameter, an option object.
| name | |
|---|---|
Container | DI container interface — the only thing application code sees. |
Constructor | |
RegisterOptions | |
Lifetime | 'singleton' builds once per scope, 'transient', the default, at each resolve. |