Skip to content

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:

ParameterTypeDescription
providerValueProvider<Value, Arguments>The value provider to resolve.
$argumentsArguments & Partial<CommonArguments>

Returns: Promise<Value> — A Promise that resolves with the value provided by the value provider.