@sheetxl/formulas 0.8.0-beta.12 → 0.8.0-beta.13
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/{node/esm/DjyHh018kLhr0Mei.mjs → browser/esm/0g9n-PXSJKjdh_Le.mjs} +1 -1
- package/browser/esm/{3WuDomWmdEKeZbbG.mjs → B1VXZ5HOc0-o7HX1.mjs} +1 -1
- package/{node/esm/DV-ZFUlItxUMktFi.mjs → browser/esm/B3_fpgeQJOHVf_I2.mjs} +1 -1
- package/{node/esm/DNDB1mXiSsh0bafX.mjs → browser/esm/B85cxzFbeKSKvhwV.mjs} +1 -1
- package/browser/esm/{D9fexU1-mdcSP2iQ.mjs → BOQu6IeJE1VN1M-0.mjs} +1 -1
- package/browser/esm/{DoskhFg8-rD--hBe.mjs → BW13hj9dMujWeKfW.mjs} +1 -1
- package/browser/esm/{BSbkSGYSUJNq_hqv.mjs → BmCWS5YPpijH8dTj.mjs} +1 -1
- package/browser/esm/{aC8_V2oEKhP24LGQ.mjs → BwHScInprHiyQQ1W.mjs} +1 -1
- package/browser/esm/{BvKsdIEViy4fMwhf.mjs → C-fbvVhqtZBxpdCQ.mjs} +1 -1
- package/browser/esm/{DuXvjmotXWlE-MjK.mjs → CGh9-cUo346YWGjV.mjs} +1 -1
- package/browser/esm/{BnFUk4nDKrwcn2lh.mjs → CRZeSnWzK4HrEo_k.mjs} +1 -1
- package/browser/esm/{C5TC2uUvcVuVyXHL.mjs → CV4Jj4iNlri1L6bP.mjs} +1 -1
- package/browser/esm/{D-wDBNKAgLWkLGin.mjs → ChQ0ONOtC7mNMiBY.mjs} +28 -5
- package/{node/esm/fXwy-eKzVb7M6AyK.mjs → browser/esm/DJnSF3GPbjUXtpLQ.mjs} +1 -1
- package/browser/esm/{CKI92sNkVKkaDqNh.mjs → DOYLRl62NjhI0M9P.mjs} +1 -1
- package/browser/esm/DaJpZ0P_STV4goPW.mjs +16 -0
- package/browser/esm/{CNEodHdQn14H1-5Y.mjs → DlX1t_RpUwb6jT-v.mjs} +1 -1
- package/browser/esm/{BTtjJHW0OffnZJzw.mjs → Dq7jnSjxMEmYihjW.mjs} +1 -1
- package/browser/esm/{Bp5Bu5Mlbs1dO6WO.mjs → Gkiytcxc8v-OhBI2.mjs} +1 -1
- package/{node/esm/D1nqrNVXoLdxOcgY.mjs → browser/esm/H2-dBxKNmNMjdudX.mjs} +1 -1
- package/browser/esm/{BmaRiVdIUgF4vbLG.mjs → K4JPJWQINLVWmmo0.mjs} +1 -1
- package/browser/esm/{CUusMzsATShxE804.mjs → aYrH_l-Yyhi3rZyo.mjs} +1 -1
- package/{node/esm/BR0hfMJeizGLzQyZ.mjs → browser/esm/cvRrq4NioI5lwOf9.mjs} +1 -1
- package/browser/esm/declarations.mjs +35 -31
- package/browser/esm/index.mjs +1911 -1840
- package/browser/esm/{Cg0aJ8YiUob7UwB0.mjs → lYCFVey6QW_8ELeu.mjs} +1 -1
- package/browser/esm/{BgSZby_sWDnOsdXg.mjs → nHjWvILCaLRUxxa3.mjs} +1 -1
- package/browser/esm/{DZpOzJdF5Aq0XKsk.mjs → ndzPa89HgVLoAmDy.mjs} +1 -1
- package/{browser/esm/DjyHh018kLhr0Mei.mjs → node/esm/0g9n-PXSJKjdh_Le.mjs} +1 -1
- package/node/esm/{3WuDomWmdEKeZbbG.mjs → B1VXZ5HOc0-o7HX1.mjs} +1 -1
- package/{browser/esm/DV-ZFUlItxUMktFi.mjs → node/esm/B3_fpgeQJOHVf_I2.mjs} +1 -1
- package/{browser/esm/DNDB1mXiSsh0bafX.mjs → node/esm/B85cxzFbeKSKvhwV.mjs} +1 -1
- package/node/esm/{D9fexU1-mdcSP2iQ.mjs → BOQu6IeJE1VN1M-0.mjs} +1 -1
- package/node/esm/{BFejh_-BKH7d4VU_.mjs → BQfDXXGMJAqlZAbX.mjs} +1 -1
- package/node/esm/{DoskhFg8-rD--hBe.mjs → BW13hj9dMujWeKfW.mjs} +1 -1
- package/node/esm/{DzwnOmlnm63qulqP.mjs → Bhyn539dnfPZzmFq.mjs} +1 -1
- package/node/esm/{CCK3HvWAkhoPqNVn.mjs → Bi-k1pcXmkaCvsOw.mjs} +1 -1
- package/node/esm/{FET0QZ4bmHRpACHN.mjs → Bik73-C9uUrl_xFO.mjs} +1 -1
- package/node/esm/{CE015xqWfBU0RDwN.mjs → Bv4WtM3uySZdvgfZ.mjs} +1 -1
- package/node/esm/{aC8_V2oEKhP24LGQ.mjs → BwHScInprHiyQQ1W.mjs} +1 -1
- package/node/esm/{B3NIBuFdxhYgtm0v.mjs → C0dvCUIGYGj5iF_4.mjs} +1 -1
- package/node/esm/{Sa4BQzT3nmlBqF85.mjs → C5XuQCv60UT7uXpo.mjs} +28 -5
- package/node/esm/{DuXvjmotXWlE-MjK.mjs → CGh9-cUo346YWGjV.mjs} +1 -1
- package/node/esm/{BnFUk4nDKrwcn2lh.mjs → CRZeSnWzK4HrEo_k.mjs} +1 -1
- package/node/esm/{C5TC2uUvcVuVyXHL.mjs → CV4Jj4iNlri1L6bP.mjs} +1 -1
- package/{browser/esm/fXwy-eKzVb7M6AyK.mjs → node/esm/DJnSF3GPbjUXtpLQ.mjs} +1 -1
- package/node/esm/{-G_Hzhf2rR28IBi2.mjs → DREFuaOTCkbeo0T5.mjs} +1 -1
- package/node/esm/DaJpZ0P_STV4goPW.mjs +16 -0
- package/node/esm/{CNEodHdQn14H1-5Y.mjs → DlX1t_RpUwb6jT-v.mjs} +1 -1
- package/node/esm/{Bp5Bu5Mlbs1dO6WO.mjs → Gkiytcxc8v-OhBI2.mjs} +1 -1
- package/{browser/esm/D1nqrNVXoLdxOcgY.mjs → node/esm/H2-dBxKNmNMjdudX.mjs} +1 -1
- package/{browser/esm/BR0hfMJeizGLzQyZ.mjs → node/esm/cvRrq4NioI5lwOf9.mjs} +1 -1
- package/node/esm/declarations.mjs +35 -31
- package/node/esm/index.mjs +2584 -2510
- package/node/esm/{BgSZby_sWDnOsdXg.mjs → nHjWvILCaLRUxxa3.mjs} +1 -1
- package/node/esm/{DZpOzJdF5Aq0XKsk.mjs → ndzPa89HgVLoAmDy.mjs} +1 -1
- package/package.json +3 -3
- package/types/src/.generated/decl/web/ImportData.decl.d.ts +4 -0
- package/types/src/.generated/desc/web/ImportData.desc.d.ts +4 -0
- package/types/src/_utils/CharWidth.d.ts +23 -0
- package/types/src/_utils/Distributions.d.ts +2 -2
- package/types/src/_utils/Errors.d.ts +15 -1
- package/types/src/_utils/FirstCell.d.ts +1 -1
- package/types/src/_utils/Matrix.d.ts +1 -1
- package/types/src/dateTime/Date.d.ts +3 -3
- package/types/src/logical/Logical.d.ts +1 -1
- package/types/src/lookupReference/Reference.d.ts +6 -5
- package/types/src/mathTrig/Math.d.ts +7 -7
- package/types/src/web/ImportData.d.ts +26 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/formulas - Formulas - TypeScript formulas compatible with Excel built-ins. - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/formulas",
|
|
3
3
|
"description": "Formulas - TypeScript formulas compatible with Excel built-ins.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.13",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"formulas"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@sheetxl/primitives": "^0.8.0-beta.
|
|
46
|
-
"@sheetxl/scripting": "^0.8.0-beta.
|
|
45
|
+
"@sheetxl/primitives": "^0.8.0-beta.13",
|
|
46
|
+
"@sheetxl/scripting": "^0.8.0-beta.13",
|
|
47
47
|
"bahttext": "^2.4.0",
|
|
48
48
|
"bessel": "^1.0.2"
|
|
49
49
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Half-width and full-width conversion for `ASC` and `DBCS`.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Follows Windows `LCMapStringEx` with `LCMAP_HALFWIDTH` / `LCMAP_FULLWIDTH`, which answers the same
|
|
6
|
+
* under every language with two widths — the only languages under which the conversion applies.
|
|
7
|
+
*
|
|
8
|
+
* The rules are the Unicode Halfwidth and Fullwidth Forms block. Two departures come from Windows:
|
|
9
|
+
* the backslash stays as it is in both directions, and the block's halfwidth arrows, box drawing and
|
|
10
|
+
* shapes (U+FFE8 to U+FFEE) are not converted. Windows also composes any base and combining mark
|
|
11
|
+
* going to full width (`e` and U+0301 become U+00E9); only kana and Hangul compose here.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Converts every character that has a full-width form to it, then composes what the conversion left
|
|
15
|
+
* side by side: a kana and its voiced mark become one character, and Hangul letters one syllable.
|
|
16
|
+
*/
|
|
17
|
+
export declare const toFullWidth: (text: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Converts every character that has a half-width form to it. A voiced katakana becomes two
|
|
20
|
+
* characters, so the result can be longer than `text`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const toHalfWidth: (text: string) => string;
|
|
23
|
+
//# sourceMappingURL=CharWidth.d.ts.map
|
|
@@ -2,7 +2,7 @@ export declare const normalPdf: (x: number, mean: number, std: number) => number
|
|
|
2
2
|
/**
|
|
3
3
|
* Taken through `erfc` rather than `1 + erf`: below about `-6` standard deviations the latter is
|
|
4
4
|
* one plus a value one ulp short of minus one, so the whole lower tail cancels away to zero
|
|
5
|
-
* where
|
|
5
|
+
* where it should carry out to 1E-300.
|
|
6
6
|
*/
|
|
7
7
|
export declare const normalCdf: (x: number, mean: number, std: number) => number;
|
|
8
8
|
export declare const normalInv: (p: number, mean: number, std: number) => number;
|
|
@@ -51,7 +51,7 @@ export declare function poissonPdf(k: number, l: number): number;
|
|
|
51
51
|
* or a silently truncated tail. Where the walk cannot answer, the complementary regularized
|
|
52
52
|
* gamma is the same function in closed form.
|
|
53
53
|
*
|
|
54
|
-
* The ORDER is the one place this differs from the rest of the category,
|
|
54
|
+
* The ORDER is the one place this differs from the rest of the category, which accumulates
|
|
55
55
|
* forward. It is kept because nothing separates the two orders: only nine of the family's rows
|
|
56
56
|
* move at all and they split between them, and a summation order should not be changed on a
|
|
57
57
|
* coin toss.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Scalar } from '@sheetxl/primitives';
|
|
1
|
+
import { FormulaError, IRange, Scalar } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
3
|
* Wraps a value-aggregating reduce callback (SUMIF / AVERAGEIF / MAXIFS / …) so an error in a
|
|
4
4
|
* MATCHED member becomes the whole result, while a non-matched one stays invisible.
|
|
@@ -11,4 +11,18 @@ import { Scalar } from '@sheetxl/primitives';
|
|
|
11
11
|
* Count flavors do NOT wrap: `COUNTIF(A1:A3,">1")` counts a matched error member.
|
|
12
12
|
*/
|
|
13
13
|
export declare function rejectMatchedError(fn: (accumulator: Scalar, value: Scalar) => Scalar): (accumulator: Scalar, value: Scalar) => Scalar;
|
|
14
|
+
/**
|
|
15
|
+
* The member error a paired statistic answers with: `#NULL!` and `#GETTING_DATA` read as `#NUM!`.
|
|
16
|
+
*
|
|
17
|
+
* Shared by the two-array statistics (`CORREL`, `PEARSON`, `RSQ`, `STEYX`, `COVARIANCE.*`, `SLOPE`,
|
|
18
|
+
* `INTERCEPT`, `FORECAST`, `SUMX2MY2` and its siblings, `PROB`, `CHISQ.TEST`, `F.TEST`, `T.TEST`).
|
|
19
|
+
* Which member wins is each function's own scan order; only the kind is mapped. `SUMPRODUCT`,
|
|
20
|
+
* `SUM` and the one-array statistics keep the error as it is.
|
|
21
|
+
*/
|
|
22
|
+
export declare function pairedMemberError<E extends FormulaError.Known>(error: E): E;
|
|
23
|
+
/**
|
|
24
|
+
* {@link pairedMemberError} of a range's first error, except at a single-cell REFERENCE: that one
|
|
25
|
+
* reads as a direct argument and keeps its error (`PROB(A2,C1,1)` is `#NULL!` where A2 is).
|
|
26
|
+
*/
|
|
27
|
+
export declare function pairedRangeError(range: IRange): FormulaError.Known;
|
|
14
28
|
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { IRange, Scalar } from '@sheetxl/primitives';
|
|
|
17
17
|
*/
|
|
18
18
|
export declare const readFirstOrMembers: <T extends Scalar>(container: IRange, read: (value: Scalar) => T, paramIndex?: number) => T;
|
|
19
19
|
/**
|
|
20
|
-
* The one cell a multi-cell REFERENCE reads as at a slot
|
|
20
|
+
* The one cell a multi-cell REFERENCE reads as at a slot declared a plain VALUE.
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
23
|
* The choice is the call's implicit-intersection MODE: in VALUE
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
/**
|
|
16
16
|
* The determinant, as the signed product of the pivots.
|
|
17
17
|
*
|
|
18
|
-
* The product is a multiplication, so it carries the two rules
|
|
18
|
+
* The product is a multiplication, so it carries the two rules the multiplying operators do:
|
|
19
19
|
* a subnormal flushes to zero (`MDETERM({1E-160,2E-160;3E-160,4E-160})` is 0, not 2E-320) and an
|
|
20
20
|
* overflow is `#NUM!` rather than an infinity, which is what `NaN` means to the caller.
|
|
21
21
|
*/
|
|
@@ -187,9 +187,9 @@ export declare function TODAY(): Volatile<number>;
|
|
|
187
187
|
* How WEEKDAY numbers the days of the week.
|
|
188
188
|
*
|
|
189
189
|
* @remarks
|
|
190
|
-
* Declared `ReportType`, as every numeric built-in enum is:
|
|
191
|
-
* is 2) and
|
|
192
|
-
* verdict. Members that mean the same thing share
|
|
190
|
+
* Declared `ReportType`, as every numeric built-in enum is: the argument is TRUNCATED (`2.9`
|
|
191
|
+
* is 2) and is #NUM! outside the set, which an enum's gate does not do, so the body keeps
|
|
192
|
+
* the verdict. Members that mean the same thing share a label (2 and 11, 1 and 17), and so share
|
|
193
193
|
* one descriptor entry.
|
|
194
194
|
*/
|
|
195
195
|
declare enum WeekdayType {
|
|
@@ -55,7 +55,7 @@ export declare function IFNA(value: AcceptError<Scalar>, valueIfNA: Lazy<AcceptE
|
|
|
55
55
|
* The search STOPS at the first TRUE condition, and a condition past it is never read: a
|
|
56
56
|
* `#DIV/0!` or an uncoercible text there does not surface. A fault reached BEFORE the match is
|
|
57
57
|
* fatal, which is why the test slot accepts errors and this body decides — the engine's own
|
|
58
|
-
* left-to-right propagation would refuse the whole call for a condition
|
|
58
|
+
* left-to-right propagation would refuse the whole call for a condition that is never evaluated.
|
|
59
59
|
*/
|
|
60
60
|
export declare function IFS(condition: Repeating<[logicalTest: AcceptError<boolean>, logicalTrue: AcceptError<any>], 254>): any;
|
|
61
61
|
/**
|
|
@@ -53,8 +53,9 @@ export declare function CHOOSEROWS(array: Flatten<IRange>, rowNum: Repeating<num
|
|
|
53
53
|
/**
|
|
54
54
|
* Returns the column number of a reference.
|
|
55
55
|
* @param reference is the cell or range of contiguous cells for which you want the column number. If omitted, the cell containing the COLUMN function is used.
|
|
56
|
+
* @returnKind number
|
|
56
57
|
*/
|
|
57
|
-
export declare function COLUMN(reference?: Flatten<IReferenceRange>): number[];
|
|
58
|
+
export declare function COLUMN(reference?: Flatten<IReferenceRange>): number | number[];
|
|
58
59
|
/**
|
|
59
60
|
* Returns the number of columns in an array or reference.
|
|
60
61
|
* @param array is an array or array formula, or a reference to a range of cells for which you want the number of columns.
|
|
@@ -164,7 +165,7 @@ export declare function IMAGE(source: string, alternateText?: Omittable<string>,
|
|
|
164
165
|
* @param areaNum selects the area in Array or Reference from which to return a value. If omitted, the first area is used.
|
|
165
166
|
*
|
|
166
167
|
* @remarks
|
|
167
|
-
* Combines
|
|
168
|
+
* Combines the array and reference forms of INDEX using optional parameters.
|
|
168
169
|
*/
|
|
169
170
|
export declare function INDEX(array: Flatten<IRange>, rowNum: Omittable<number>, colNum?: Omittable<number | undefined, 0>, areaNum?: Omittable<number, 0>): any;
|
|
170
171
|
/**
|
|
@@ -225,7 +226,7 @@ export declare function OFFSET(reference: IReferenceRange, rows: number, cols: n
|
|
|
225
226
|
* @param reference is the cell or a single range of cells for which you want the row number; if omitted, returns the cell containing the ROW function.
|
|
226
227
|
* @returnKind number
|
|
227
228
|
*/
|
|
228
|
-
export declare function ROW(reference?: Flatten<IReferenceRange>): number[] | number[][];
|
|
229
|
+
export declare function ROW(reference?: Flatten<IReferenceRange>): number | number[] | number[][];
|
|
229
230
|
/**
|
|
230
231
|
* Returns the number of rows in a reference or array.
|
|
231
232
|
* @param array is an array, an array formula, or a reference to a range of cells for which you want the number of rows.
|
|
@@ -251,7 +252,7 @@ export declare function SORT(array: IRange | Scalar, sortIndex?: Omittable<IRang
|
|
|
251
252
|
* The direction SORT and SORTBY sort a key in.
|
|
252
253
|
*
|
|
253
254
|
* @remarks
|
|
254
|
-
* Declared `ReportType`, as every numeric built-in enum is:
|
|
255
|
+
* Declared `ReportType`, as every numeric built-in enum is: this argument FLOORS (`1.5` sorts
|
|
255
256
|
* ascending, `-1.5` is #VALUE!), which an enum's gate does not, so `_sortOrders` keeps the verdict.
|
|
256
257
|
* SORT takes an array of orders, one per key, so its slot is `IRange<ReportType<SortOrder>>`.
|
|
257
258
|
*/
|
|
@@ -286,7 +287,7 @@ export declare function TAKE(array: IRange, rows: Omittable<number>, columns?: O
|
|
|
286
287
|
* Which values to leave out.
|
|
287
288
|
*
|
|
288
289
|
* @remarks
|
|
289
|
-
* Declared `ReportType`:
|
|
290
|
+
* Declared `ReportType`: this argument TRUNCATES on the way in (`TOCOL(a,1.9)` reads 1 and
|
|
290
291
|
* `3.9` reads 3), which an enum's gate does not, so the body keeps the verdict.
|
|
291
292
|
*/
|
|
292
293
|
declare enum IgnoreValues {
|
|
@@ -8,8 +8,8 @@ export declare function ABS(number: number): number;
|
|
|
8
8
|
* The calculation AGGREGATE performs.
|
|
9
9
|
*
|
|
10
10
|
* @remarks
|
|
11
|
-
* Declared `ReportType`, as every numeric built-in enum is:
|
|
12
|
-
* is SUM), which an enum's gate does not, so the body keeps the verdict. Also the
|
|
11
|
+
* Declared `ReportType`, as every numeric built-in enum is: the argument is TRUNCATED (`9.9`
|
|
12
|
+
* is SUM), which an enum's gate does not do, so the body keeps the verdict. Also the
|
|
13
13
|
* overload discriminant: 14-19 take a trailing `k`.
|
|
14
14
|
*/
|
|
15
15
|
declare enum AggregateFunction {
|
|
@@ -113,8 +113,8 @@ declare enum AggregateFunction {
|
|
|
113
113
|
* What AGGREGATE leaves out.
|
|
114
114
|
*
|
|
115
115
|
* @remarks
|
|
116
|
-
* Declared `ReportType`, as every numeric built-in enum is:
|
|
117
|
-
* is 6), which an enum's gate does not, so the body keeps the verdict.
|
|
116
|
+
* Declared `ReportType`, as every numeric built-in enum is: the argument is TRUNCATED (`6.9`
|
|
117
|
+
* is 6), which an enum's gate does not do, so the body keeps the verdict.
|
|
118
118
|
*/
|
|
119
119
|
declare enum AggregateOptions {
|
|
120
120
|
/**
|
|
@@ -596,9 +596,9 @@ export declare function SQRTPI(number: NoLift<Omittable<AcceptError<Scalar>>>):
|
|
|
596
596
|
* The calculation SUBTOTAL performs; 101-111 leave out hidden rows.
|
|
597
597
|
*
|
|
598
598
|
* @remarks
|
|
599
|
-
* Declared `ReportType`, as every numeric built-in enum is:
|
|
600
|
-
* is SUM), which an enum's gate does not, so the body keeps the verdict.
|
|
601
|
-
*
|
|
599
|
+
* Declared `ReportType`, as every numeric built-in enum is: the argument is TRUNCATED (`9.9`
|
|
600
|
+
* is SUM), which an enum's gate does not do, so the body keeps the verdict. 101-111 are
|
|
601
|
+
* labeled with the bare function name, as 1-11 are; a member name keys the descriptor and the
|
|
602
602
|
* language packs, so each must be unique.
|
|
603
603
|
*/
|
|
604
604
|
declare enum SubtotalFunction {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Scalar, Omittable } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* Imports data at a given url in .csv (comma-separated value) or .tsv (tab-separated value) format.
|
|
4
|
+
* @param url the url of the .csv or .tsv data, including protocol (e.g. `http://`).
|
|
5
|
+
* @param delimiter the single character between fields. It may not be a double quote, or whitespace other than a tab. Default is inferred from the file name: comma for CSV, tab for TSV.
|
|
6
|
+
* @param locale a language and region locale code to use when parsing the data (`"en_US"`). Default is the workbook's locale.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* =IMPORTDATA("https://api.covidtracking.com/v1/us/daily.csv")
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* * The cell shows `#BUSY!` until the data arrives, then spills one row per line.
|
|
13
|
+
* * Each field is read as if it were typed into a cell: numbers, dates and `TRUE`/`FALSE` become
|
|
14
|
+
* values, anything else stays text, and an empty field is blank.
|
|
15
|
+
* * A url that cannot be fetched is `#N/A`.
|
|
16
|
+
* * In a browser the server must allow cross-origin requests (CORS), or the workbook's fetcher
|
|
17
|
+
* must reach it another way. Otherwise the `#N/A` says the site is restricted.
|
|
18
|
+
* * A recalculation does not ask again; the data is kept while the workbook is open, and a
|
|
19
|
+
* workbook opens with the data it was saved with.
|
|
20
|
+
* *Refresh All* does.
|
|
21
|
+
* * `locale` is accepted for compatibility; fields are read with the workbook's locale.
|
|
22
|
+
*
|
|
23
|
+
* @category Sheets
|
|
24
|
+
*/
|
|
25
|
+
export declare function IMPORTDATA(url: string, delimiter?: Omittable<string>, locale?: Omittable<string>): Scalar[][];
|
|
26
|
+
//# sourceMappingURL=ImportData.d.ts.map
|