name:
src/main/js/formulas/Formula.ts
-rw-r--r--
778
1import { SheetColumnRowKey } from "../models/common/SheetColumnRowKey";
2import { Complex } from "../models/common/Types";
3import { FormulaName } from "./FormulaName";
4
5/**
6 * All formulas are similar to the functional interface, accepting any number of CommonTypes and returning a single
7 * CommonTypes, which could be a list containing many more objects.
8 * <p>
9 * In order to keep these formulas simple, clean, and concise, we have two methods, one calling the other, but catching
10 * F7 errors/exceptions and returning them as objects. See {@link AbstractFormula} for more info.
11 */
12export interface Formula {
13 NAME: FormulaName;
14
15 run(origin: SheetColumnRowKey, ...args: Array<Complex>): unknown;
16
17 internal(origin: SheetColumnRowKey, ...args: Array<Complex>): unknown;
18}