- Preparing search index...
- The search index is not available
Ditox.js
- resolveValue<Tokens, Values>(container: Container, token: Tokens): Values
-
Type Parameters
-
Tokens extends Token<unknown> | {
[key: string]: Token<unknown>;
}
-
Values extends unknown
Returns Values
Resolves 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 value is not found by the token, then
ResolverError
is thrown.Example