@truecalc/core 3.2.0 → 4.0.0
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/package.json +1 -1
- package/truecalc_wasm.d.ts +5 -2
- package/truecalc_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@truecalc/core",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Spreadsheet formula engine for the browser — Google Sheets–compatible formula evaluator compiled to WebAssembly",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "4.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/truecalc_wasm.d.ts
CHANGED
|
@@ -16,13 +16,16 @@
|
|
|
16
16
|
* - `{ type: \"text\", value: \"yes\" }`
|
|
17
17
|
* - `{ type: \"bool\", value: true }`
|
|
18
18
|
* - `{ type: \"empty\" }`
|
|
19
|
-
* - `{ type: \"error\", error: \"#REF!\" }`
|
|
19
|
+
* - `{ type: \"error\", error: \"#REF!\" }` -- and, when a diagnostic is available,
|
|
20
|
+
* `{ type: \"error\", error: \"#N/A\", message: \"Wrong number of arguments to
|
|
21
|
+
* DATE. Expected 3 arguments, but got 0 arguments.\" }`. `message` is additive and
|
|
22
|
+
* omitted for errors without a diagnostic, so existing consumers are unaffected.
|
|
20
23
|
* - `{ type: \"date\", value: 46180 }` -- spreadsheet serial number (epoch implied
|
|
21
24
|
* by the engine flavor; `sheets` day 0 = 1899-12-30)
|
|
22
25
|
* - `{ type: \"array\", value: [ EvalResult, ... ] }` -- recursive; a 2-D result is
|
|
23
26
|
* `{ type: \"array\", value: [ { type: \"array\", value: [ <cells> ] }, ... ] }`
|
|
24
27
|
*/
|
|
25
|
-
export type EvalResult = { type: "number"; value: number } | { type: "text"; value: string } | { type: "bool"; value: boolean } | { type: "date"; value: number } | { type: "zoned"; value: string } | { type: "error"; error: string } | { type: "empty" } | { type: "array"; value: EvalResult[] };
|
|
28
|
+
export type EvalResult = { type: "number"; value: number } | { type: "text"; value: string } | { type: "bool"; value: boolean } | { type: "date"; value: number } | { type: "zoned"; value: string } | { type: "error"; error: string; message?: string } | { type: "empty" } | { type: "array"; value: EvalResult[] };
|
|
26
29
|
|
|
27
30
|
export interface FunctionInfo {
|
|
28
31
|
name: string;
|
package/truecalc_wasm_bg.wasm
CHANGED
|
Binary file
|