FormulaFunctionParam
Unofficial
A parameter of a Bases FormulaFunction.
Import:
import type { FormulaFunctionParam } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface FormulaFunctionParamProperties
| Property | Type | Description | |
|---|---|---|---|
| customWidget? | string | The 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. | |
| name | string | The name of the parameter, shown in the formula autocomplete. | |
| optional? | boolean | Whether the parameter may be omitted. An omitted or null argument is passed to apply as null. | |
| type | Constructor<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? | boolean | Whether the parameter takes every remaining argument. Only the last parameter can be variadic. |
Links to this page: