A world-authored custom helper, defined as a compiled function body plus its parameter names. Loaded from the world's expression-helper JSON and compiled into an ExpressionHelper via textToFunction.

interface HelperSource {
    args?: string[];
    body: string;
}

Properties

Properties

args?: string[]

Parameter names for the compiled function. Defaults to none.

body: string

The function body (or a bare expression, which is implicitly returned).