Skip to content

Plugin.registerInstanceFunc method

Plugin › registerInstanceFunc

Unofficial

Registers a Bases formula function for a value type, such as the contains() of a string, unregistered automatically on unload. The function is also found on every subclass of type, and its first parameter is the value it is called on.

Signature:

registerInstanceFunc(type: Constructor<Value>, func: FormulaFunction): void

Parameters:

ParameterTypeDescription
typeConstructor<Value>The value class to register the function for, such as StringValue.
funcFormulaFunctionThe function to register.

Returns: void