modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Type Alias FormulaFunction

    FormulaFunction: (
        args: ASTNode[],
        ctx: EvalContext,
        evaluate: (node: ASTNode, ctx: EvalContext) => CellValue,
    ) => CellValue

    A formula function receives raw AST arguments (not pre-evaluated) so that functions like IF can short-circuit. The third parameter is the evaluator callback for evaluating individual arguments on demand.

    Type Declaration