Skip to content

FormulaFunctionParam

Unofficial

A parameter of a Bases FormulaFunction.

Import:

import type { FormulaFunctionParam } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface FormulaFunctionParam

Properties

PropertyTypeDescription
customWidget?stringThe widget the filter editor shows for this parameter, overriding the one derived from FormulaFunctionParam."type". The built-in functions use file, folder, property, tags and text.
namestringThe name of the parameter, shown in the formula autocomplete.
optional?booleanWhether the parameter may be omitted. An omitted or null argument is passed to apply as null.
typeConstructor<Value>[]The value classes the argument may be an instance of. An argument that is an instance of none of them is a type error, and the first entry names the expected type in that error.
variadic?booleanWhether the parameter takes every remaining argument. Only the last parameter can be variadic.

Links to this page: