touchByAccess()
ts
function touchByAccess<T>(value, access): Promise<T>;Defined in: renderer/variables.ts:22
Internal
Resolves a value by applying an access chain Access.
Iteratively applies each access descriptor to the given value, allowing traversal of nested properties, indices, and prototype methods.
Prototype access is executed as a function call and may be asynchronous.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | Initial value to resolve from |
access | Access | Access chain describing how to traverse the value |
Returns
Promise<T>
Promise resolving to the final accessed value
Since
1.0.0
Author
Simon Kovtyk
Author
David Schummer