- Preparing search index...
- The search index is not available
Ditox.js
- resolveValues<Tokens, Values>(container: Container, ...tokens: Tokens): Values
-
Type Parameters
-
Tokens extends (Token<unknown> | {
[key: string]: Token<unknown>;
})[]
-
Values extends { [ K in string | number | symbol]: Tokens[K] extends Token<V> ? V : Tokens[K] extends TokenProps<Props> ? Props : never }
Returns Values
Returns an array of resolved values or objects with resolved values.
If an item of the array 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
ResolverError
is thrown.Example