resolveValue<Value, Arguments>
Resolves a value from a value provider, which can be either a direct value or a function that returns a value.
Import:
import { resolveValue } from 'obsidian-dev-utils/value-provider';Signature:
function resolveValue(provider: ValueProvider<Value, Arguments>, $arguments: Arguments & Partial<CommonArguments>): Promise<Value>Parameters:
| Parameter | Type | Description |
|---|---|---|
provider | ValueProvider<Value, Arguments> | The value provider to resolve. |
$arguments | Arguments & Partial<CommonArguments> |
Returns: Promise<Value> — A Promise that resolves with the value provided by the value provider.