Skip to main content
This release is 1 version behind 0.2.1 — the latest version of @findhow/container. Jump to latest

Built and signed on GitHub Actions

Wasn't a fan of using decorators to dependency inject things in the TypeScript world. Now you don't have to.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
a week ago (0.2.0)
c
CircularDependencyError

Error thrown when a circular dependency is detected.This error indicates that the dependency resolution process has encountered a loop.

c
Container

Dependency Injection Container

c
InvalidAliasError

Error thrown when an alias is resolved that does not exist.This error indicates that the specified alias has not been created in the container.

c
InvalidContextualBindingError

Error thrown when a contextual binding is invalid or undefined.This error indicates that the specified service or dependency is not properly defined.

c
InvalidExtensionError

Error thrown when an attempt is made to extend a binding that does not exist.This error indicates that the specified type has not been registered in the container.

c
InvalidSchemaError

Error thrown when a resolved instance does not match the Zod schema.This error indicates that the validation against the schema has failed.

c
InvalidTagError

Error thrown when a tag is resolved that has no associated bindings.This error indicates that the specified tag has not been used to tag any bindings in the container.

c
InvalidTypeError

Error thrown when the resolved value does not match the expected type.This error provides details about the expected and received types.

c
UnresolvedDependencyError

Error thrown when a dependency cannot be resolved because it has not been bound.This error indicates that the specified type has not been registered in the container.