Reference
Complete API documentation for DiCaf. For task-oriented guides, see the Guides section.
Core documents
The following documents cover the APIs you will use most often:
-
Container — the
DiCafclass: constructor options, all resolution, binding, lifecycle, and inspection methods. -
Binder — the
BinderandBinderOptionsfluent APIs returned bydi.bind(). -
Decorators — every decorator exported from
@caffeine-projects/dicaf/decorators, with signatures and examples. -
Injection — the
Injectiontype,InjectionDescriptor, and all injection helpers:allOf,optional,provide,mapped,object,defer,useValue,compose. -
Factories —
Factory,AsyncFactory, andResolutionContext. -
Interceptors —
PostResolutionInterceptor(per-binding) andPostProcessor(global).
Reference table of contents
-
Binder —
Binder<T>andBinderOptions<T>fluent APIs. -
Container —
DiCafconstructor, resolution methods, binding methods, lifecycle, and properties. -
Options — all
DiCafconstructor options with types, defaults, andScopeCheckModevalues. -
Decorators — all class, method, member, and configuration decorators.
-
Errors — all
ErrXxxerror classes with error codes and remediation guidance. -
Factories — factory function types and resolution context.
-
Interceptors — per-binding and global instance interceptors.
-
Graph — five graph renderer functions: text, Markdown, Mermaid, DOT, and JSON.
-
Hooks —
HookListenerevents emitted during container setup and runtime. -
Injection — injection descriptor type and helper functions.
-
Scopes — built-in scope identifiers, the
Scopeinterface, and the scope registry API for custom scopes.