- Preparing search index...
- The search index is not available
Ditox.js
Function tryResolveValues
- tryResolveValues<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> ? undefined | V : Tokens[K] extends TokenProps<Props> ? Partial<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
undefined
value is used.Example