- Preparing search index...
- The search index is not available
Ditox.js
Container
: { bindFactory
<T>(token
: Token<T>, factory
: ((container
: Container) => T), options
?: FactoryOptions<T>): void; bindValue
<T>(token
: Token<T>, value
: T): void; get
<T>(token
: Token<T>): undefined | T; hasToken
(token
: Token<unknown>): boolean; remove
<T>(token
: Token<T>): void; removeAll
(): void; resolve
<T>(token
: Token<T>): T; }
Type declaration
-
bindFactory:function
-
bindValue:function
- bindValue<T>(token: Token<T>, value: T): void
-
Returns void
-
get:function
- get<T>(token: Token<T>): undefined | T
-
Returns undefined | T
-
hasToken:function
- hasToken(token: Token<unknown>): boolean
-
Returns boolean
-
remove:function
- remove<T>(token: Token<T>): void
-
Returns void
-
removeAll:function
- removeAll(): void
-
Returns void
-
resolve:function
- resolve<T>(token: Token<T>): T
-
Returns T
Dependency container.