API reference: @salmonui/pivot-table/engine
PivotFormulaErrorCodetype
import type { PivotFormulaErrorCode } from '@salmonui/pivot-table/engine';Also exported from @salmonui/pivot-table/engine/formula.
type PivotFormulaErrorCode = 'unterminated' | 'unexpectedCharacter' | 'expected' | 'expectedBeforeEnd' | 'unknownAggregate' | 'missingField' | 'unknownField' | 'expectedReference' | 'unknownName' | 'unknownFunction' | 'ifArguments' | 'arguments' | 'argumentRange' | 'unexpectedEnd' | 'unexpected';
What is wrong with a formula, for applications that translate the message.