@rowsncolumns/fast-formula-parser 6.2.44 → 6.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +31 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +31 -2
- package/dist/esm/index.js.map +1 -1
- package/index.d.ts +12 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -115,6 +115,18 @@ declare module "@rowsncolumns/fast-formula-parser" {
|
|
|
115
115
|
row?: number;
|
|
116
116
|
sheet?: string;
|
|
117
117
|
}) => CellRange | FormulaError | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Observe every cell / range an evaluation actually reads, with the
|
|
120
|
+
* cell being evaluated (`position`, when known). `INDIRECT` / `OFFSET`
|
|
121
|
+
* targets exist only at run time — the dependency parser cannot see
|
|
122
|
+
* them — so a host uses this to learn a formula's dynamic precedents.
|
|
123
|
+
* Called before `onCell` / `onRange`; exceptions are swallowed.
|
|
124
|
+
*/
|
|
125
|
+
onReferenceResolved?: (
|
|
126
|
+
event:
|
|
127
|
+
| { kind: "cell"; ref: CellCoords; position?: CellCoords }
|
|
128
|
+
| { kind: "range"; ref: CellRange; position?: CellCoords },
|
|
129
|
+
) => void;
|
|
118
130
|
/**
|
|
119
131
|
* Resolve a 3-D reference span (`Sheet1:Sheet3!A1`): return every sheet
|
|
120
132
|
* name between `first` and `last` in tab order (inclusive, regardless of
|