- Preparing search index...
- The search index is not available
Ditox.js
- tryResolveValue<Tokens, Values>(container: Container, token: Tokens): Values
-
Type Parameters
-
Tokens extends Token<unknown> | {
[key: string]: Token<unknown>;
}
-
Values extends unknown
Returns Values
Tries to resolve a value by the provided token.
If an argument is an object which has tokens as its properties, then returns an object containing resolved values as properties.
If a token is not found, then
undefined
value is used.Example