ValueProvider<Value, Arguments>
Value provider that can either be a direct value of type Value or a function that returns a value of type Value.
Import:
import type { ValueProvider } from 'obsidian-dev-utils/value-provider';Signature:
export type ValueProvider<Value, Arguments extends object = object>Signature:
type ValueProvider<Value, Arguments> = (($arguments: Arguments & CommonArguments) => Promisable<Value>) | ValueType: (($arguments: Arguments & CommonArguments) => Promisable<Value>) | Value
Links to this page: