ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
9 lines (8 loc) • 791 B
TypeScript
export type FormulaErrorType = '#REF!' | '#NAME?' | '#CIRCREF!' | '#PARSE!' | '#VALUE!' | '#DIV/0!' | '#ERROR!';
type FormulaErrorDefinition = readonly [localeKey: string, defaultMessage: string, type?: FormulaErrorType];
declare const FORMULA_ERRORS: Record<number, FormulaErrorDefinition>;
export type FormulaErrorId = keyof typeof FORMULA_ERRORS;
export declare const getFormulaErrorDefinition: (errorId: FormulaErrorId) => FormulaErrorDefinition;
export declare const getFormulaErrorDefaultMessage: (errorId: FormulaErrorId, variableValues?: readonly unknown[]) => string;
export declare const translateFormulaError: (translate: (key: string, defaultValue: string, variableValues?: string[]) => string, errorId: FormulaErrorId, variableValues?: readonly unknown[]) => string;
export {};