@sheetxl/formulas 0.8.0-beta.2 → 0.8.0-beta.21
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/LICENSE.md +17 -7
- package/README.md +2 -3
- package/{node/esm/CWmrg99dGX7KkCJU.mjs → browser/esm/36J0hb76F3B-Yt_s.mjs} +2 -2
- package/{node/esm/BdJJZaNRqLYncn3r.mjs → browser/esm/39oTdbbzAtAsdBlF.mjs} +2 -2
- package/{node/esm/Dlez38Z5X0YBU2xQ.mjs → browser/esm/88LXPDuhlvyD60fy.mjs} +2 -2
- package/browser/esm/{CWY6SMVnWP72iGrA.mjs → BFFmVQRfdZ1yIulh.mjs} +2 -2
- package/browser/esm/BI-pi-NwnVgRzoGz.mjs +16 -0
- package/browser/esm/{BVuHG04ucrGkymAy.mjs → ByRF8BNaAbA79LCH.mjs} +15 -10
- package/browser/esm/{B0Y4YjJhQJA8Muz4.mjs → CCUYDvC14VKi3pBi.mjs} +2 -2
- package/{node/esm/Bg8866dMayL6y1H_.mjs → browser/esm/CD9mkmFJMlZrNADp.mjs} +2 -2
- package/browser/esm/{4OV2RO_CWP4nMkqC.mjs → CEdVWRdSFVYnuVUV.mjs} +2 -2
- package/{node/esm/Bf43Iq3IvoB06LYk.mjs → browser/esm/COB1SzRuMOHUTnrw.mjs} +2 -2
- package/{node/esm/BJUX0gG7CASl9l_q.mjs → browser/esm/CWwf_lLPzVmbPPpz.mjs} +2 -2
- package/browser/esm/C_O_CTtUMItlRiCC.mjs +30 -0
- package/browser/esm/{BtONPY8z9-XPAqsg.mjs → CfVMqm2AzXF9CdI3.mjs} +2 -2
- package/browser/esm/{B_5HCl2iI1AXGllh.mjs → Cvl0kBQedMoaGKZz.mjs} +2 -2
- package/{node/esm/CZUEcjLsLIjL75Zs.mjs → browser/esm/D-Umi0mibCub9Vsr.mjs} +2 -2
- package/browser/esm/{CkY_1RRc5tkjyrED.mjs → D21CuJHvf_XaiX9c.mjs} +2 -2
- package/browser/esm/{DjXw3atxP-P9JI39.mjs → DFpfRnloKbWmMR4B.mjs} +2 -2
- package/browser/esm/{CXl9CXf0KGXUNtZp.mjs → DOTlsneAHs5EdPxc.mjs} +2 -2
- package/browser/esm/{BauuYQVGaczFYyqn.mjs → DPTl2dlCelXbEuml.mjs} +2 -2
- package/browser/esm/{-kS84bK3sUejOdg1.mjs → D_7qCMxspQ3wsAVl.mjs} +2 -2
- package/{node/esm/Boi3LcM8Iivb_l5K.mjs → browser/esm/DgH5-IPiJ5PXzF3E.mjs} +2 -2
- package/browser/esm/Dk6lfBjBZaMcnv8I.mjs +5817 -0
- package/{node/esm/CUk8EwtBWwlXCR2j.mjs → browser/esm/JYuF4ff9ziOhTnnS.mjs} +2 -2
- package/browser/esm/declarations.mjs +114 -0
- package/browser/esm/index.mjs +4245 -10038
- package/browser/esm/{BxhVZW45vJLHJn3w.mjs → n3Xd5PoUQhwyyT05.mjs} +2 -2
- package/{node/esm/BUPw_w8LCTxzqyi2.mjs → browser/esm/sEnzSvD52gctYJAN.mjs} +2 -2
- package/{node/esm/CcmByvKzgVja3yr6.mjs → browser/esm/yDs0erVJTPEM7IFS.mjs} +2 -2
- package/{browser/esm/CWmrg99dGX7KkCJU.mjs → node/esm/36J0hb76F3B-Yt_s.mjs} +2 -2
- package/{browser/esm/BdJJZaNRqLYncn3r.mjs → node/esm/39oTdbbzAtAsdBlF.mjs} +2 -2
- package/{browser/esm/Dlez38Z5X0YBU2xQ.mjs → node/esm/88LXPDuhlvyD60fy.mjs} +2 -2
- package/node/esm/{Dz7ST1qPjkq088mt.mjs → AZGy2Uev0yRLRmA5.mjs} +2 -2
- package/node/esm/{CWY6SMVnWP72iGrA.mjs → BFFmVQRfdZ1yIulh.mjs} +2 -2
- package/node/esm/BI-pi-NwnVgRzoGz.mjs +16 -0
- package/{browser/esm/Bg8866dMayL6y1H_.mjs → node/esm/CD9mkmFJMlZrNADp.mjs} +2 -2
- package/node/esm/{4OV2RO_CWP4nMkqC.mjs → CEdVWRdSFVYnuVUV.mjs} +2 -2
- package/node/esm/CJqIrIx1V5su8DBU.mjs +5817 -0
- package/{browser/esm/Bf43Iq3IvoB06LYk.mjs → node/esm/COB1SzRuMOHUTnrw.mjs} +2 -2
- package/node/esm/{L1ywxrMIpFzquai3.mjs → CSDOBBqCH6vwnnJa.mjs} +2 -2
- package/{browser/esm/BJUX0gG7CASl9l_q.mjs → node/esm/CWwf_lLPzVmbPPpz.mjs} +2 -2
- package/node/esm/C_O_CTtUMItlRiCC.mjs +30 -0
- package/node/esm/{B_5HCl2iI1AXGllh.mjs → Cvl0kBQedMoaGKZz.mjs} +2 -2
- package/{browser/esm/CZUEcjLsLIjL75Zs.mjs → node/esm/D-Umi0mibCub9Vsr.mjs} +2 -2
- package/node/esm/{BauuYQVGaczFYyqn.mjs → DPTl2dlCelXbEuml.mjs} +2 -2
- package/node/esm/{-kS84bK3sUejOdg1.mjs → D_7qCMxspQ3wsAVl.mjs} +2 -2
- package/{browser/esm/Boi3LcM8Iivb_l5K.mjs → node/esm/DgH5-IPiJ5PXzF3E.mjs} +2 -2
- package/node/esm/{BtaLrrwE55oJIcLv.mjs → Dgic_pZAx_r79ToI.mjs} +15 -10
- package/node/esm/{Cn2Y6fUYzZTcjL1D.mjs → Di3s39PkZ9FUAh99.mjs} +2 -2
- package/node/esm/{DAuNtqi47mn8k6wW.mjs → Hnk6ODJMVM17S8Lj.mjs} +2 -2
- package/node/esm/{D2BWBzQdoBCT5mqS.mjs → J89e38tEnJKMMtJV.mjs} +2 -2
- package/{browser/esm/CUk8EwtBWwlXCR2j.mjs → node/esm/JYuF4ff9ziOhTnnS.mjs} +2 -2
- package/node/esm/{BpDSup4ua3hmCgHS.mjs → dQJG9TMB06CuunYH.mjs} +2 -2
- package/node/esm/declarations.mjs +114 -0
- package/node/esm/index.mjs +4933 -10715
- package/{browser/esm/BUPw_w8LCTxzqyi2.mjs → node/esm/sEnzSvD52gctYJAN.mjs} +2 -2
- package/{browser/esm/CcmByvKzgVja3yr6.mjs → node/esm/yDs0erVJTPEM7IFS.mjs} +2 -2
- package/package.json +12 -7
- package/types/declarations.d.ts +4 -0
- package/types/src/.generated/decl/{lookupReference/PivotBy.decl.d.ts → financial/MarketHistory.decl.d.ts} +1 -1
- package/types/src/.generated/decl/{lookupReference/GroupBy.decl.d.ts → web/ImportData.decl.d.ts} +1 -1
- package/types/src/.generated/declarations.d.ts +7 -0
- package/types/src/.generated/desc/{lookupReference/PivotBy.desc.d.ts → financial/MarketHistory.desc.d.ts} +1 -1
- package/types/src/.generated/desc/{lookupReference/GroupBy.desc.d.ts → web/ImportData.desc.d.ts} +1 -1
- package/types/src/_utils/Arithmetic.d.ts +16 -0
- package/types/src/_utils/CharWidth.d.ts +23 -0
- package/types/src/_utils/Distributions.d.ts +5 -6
- 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 +3 -3
- package/types/src/_utils/SpecialFunctions.d.ts +2 -2
- package/types/src/dateTime/Date.d.ts +3 -3
- package/types/src/financial/MarketHistory.d.ts +40 -0
- package/types/src/logical/Logical.d.ts +1 -1
- package/types/src/lookupReference/Reference.d.ts +46 -17
- package/types/src/mathTrig/Math.d.ts +8 -8
- package/types/src/testing/Testing.d.ts +2 -2
- package/types/src/web/FilterXML.d.ts +1 -1
- package/types/src/web/ImportData.d.ts +26 -0
- package/types/src/web/Web.d.ts +1 -1
- package/browser/cjs/1XrWGMP3GmsQOMIX.cjs +0 -1
- package/browser/cjs/4nReftSsKWmnRdtf.cjs +0 -1
- package/browser/cjs/507hQYooKKjnRzsZ.cjs +0 -1
- package/browser/cjs/B6vy56yEA1I3B74O.cjs +0 -1
- package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
- package/browser/cjs/BK0SCfN_VZYqBxoQ.cjs +0 -1
- package/browser/cjs/BcROQ4pvVajDQ1em.cjs +0 -1
- package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
- package/browser/cjs/C0g87ndP2zMUbX6f.cjs +0 -1
- package/browser/cjs/C9q3zr8iCIoYDrdA.cjs +0 -1
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
- package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
- package/browser/cjs/CVHc_cJddJk7J3Zt.cjs +0 -1
- package/browser/cjs/CXlzsh_WHCOsErJ1.cjs +0 -1
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
- package/browser/cjs/DDnGLOLTqLFsdUDS.cjs +0 -1
- package/browser/cjs/DF4l8xrxkcLkgExp.cjs +0 -1
- package/browser/cjs/DG2kqsWRUtVugjay.cjs +0 -1
- package/browser/cjs/DM7-R_ltoLbA9jde.cjs +0 -1
- package/browser/cjs/DNKyaSruDogoBd2H.cjs +0 -1
- package/browser/cjs/Dtxj9JR14A-uliu5.cjs +0 -1
- package/browser/cjs/Dx7GQ4ALtNG3kshu.cjs +0 -1
- package/browser/cjs/aONv0Ys3C8xmnaR8.cjs +0 -1
- package/browser/cjs/index.cjs +0 -1
- package/browser/cjs/z_rZE1OHFPpdGBh4.cjs +0 -1
- package/browser/esm/CJZ-TeBArj3iV0tc.mjs +0 -24
- package/browser/esm/fqbUfTxrCDBe0sHK.mjs +0 -21
- package/node/esm/CJZ-TeBArj3iV0tc.mjs +0 -24
- package/node/esm/fqbUfTxrCDBe0sHK.mjs +0 -21
- package/types/src/lookupReference/GroupBy.d.ts +0 -19
- package/types/src/lookupReference/PivotBy.d.ts +0 -24
|
@@ -1,8 +1,8 @@
|
|
|
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.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
var e = {
|
|
8
8
|
COMPLEX: {
|
|
@@ -1,8 +1,8 @@
|
|
|
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.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
var e = {
|
|
8
8
|
BESSELI: {
|
package/package.json
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/formulas",
|
|
3
3
|
"description": "Formulas - TypeScript formulas compatible with Excel built-ins.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
5
|
-
"license": "
|
|
4
|
+
"version": "0.8.0-beta.21",
|
|
5
|
+
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./types/index.d.ts",
|
|
10
10
|
"browser": "./browser/esm/index.mjs",
|
|
11
11
|
"node": "./node/esm/index.mjs",
|
|
12
|
-
"
|
|
13
|
-
|
|
12
|
+
"default": "./browser/esm/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"./declarations": {
|
|
15
|
+
"types": "./types/declarations.d.ts",
|
|
16
|
+
"browser": "./browser/esm/declarations.mjs",
|
|
17
|
+
"node": "./node/esm/declarations.mjs",
|
|
18
|
+
"default": "./browser/esm/declarations.mjs"
|
|
14
19
|
}
|
|
15
20
|
},
|
|
16
21
|
"types": "./types/index.d.ts",
|
|
17
22
|
"module": "./browser/esm/index.mjs",
|
|
18
|
-
"main": "./browser/
|
|
23
|
+
"main": "./browser/esm/index.mjs",
|
|
19
24
|
"sideEffects": false,
|
|
20
25
|
"engineStrict": true,
|
|
21
26
|
"homepage": "https://sheetxl.com",
|
|
@@ -37,8 +42,8 @@
|
|
|
37
42
|
"formulas"
|
|
38
43
|
],
|
|
39
44
|
"dependencies": {
|
|
40
|
-
"@sheetxl/primitives": "^0.8.0-beta.
|
|
41
|
-
"@sheetxl/scripting": "^0.8.0-beta.
|
|
45
|
+
"@sheetxl/primitives": "^0.8.0-beta.21",
|
|
46
|
+
"@sheetxl/scripting": "^0.8.0-beta.21",
|
|
42
47
|
"bahttext": "^2.4.0",
|
|
43
48
|
"bessel": "^1.0.2"
|
|
44
49
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunctionDeclarationModule } from '@sheetxl/scripting';
|
|
2
|
+
/**
|
|
3
|
+
* This package's declarations, one entry per source module, in binding order.
|
|
4
|
+
*/
|
|
5
|
+
declare const declarations: readonly FunctionDeclarationModule[];
|
|
6
|
+
export default declarations;
|
|
7
|
+
//# sourceMappingURL=declarations.d.ts.map
|
|
@@ -12,6 +12,22 @@
|
|
|
12
12
|
* the arctangent.
|
|
13
13
|
*/
|
|
14
14
|
export declare const flushSubnormal: (value: number) => number;
|
|
15
|
+
/**
|
|
16
|
+
* The shift Excel adds to a count or position argument before truncating it.
|
|
17
|
+
*
|
|
18
|
+
* It is a small ABSOLUTE constant, so a value just under an integer counts as that integer at any
|
|
19
|
+
* magnitude: `LEFT("hello",0.9999999)` is "h" and `LEFT("hello",0.999999)` — one digit less — is
|
|
20
|
+
* the empty string.
|
|
21
|
+
*
|
|
22
|
+
* Which functions shift is a PER-FUNCTION fact, not an engine one, and the family is split down
|
|
23
|
+
* the middle: LEFT, RIGHT, FIND, SEARCH, REPLACE, SUBSTITUTE, CHAR, INDEX and ROUND shift, while
|
|
24
|
+
* MID, REPT and UNICHAR truncate the double as it stands (`MID("hello",0.9999999,1)` is #VALUE!
|
|
25
|
+
* and `UNICHAR(0.9999999)` is too). So this is applied per call site rather than in the
|
|
26
|
+
* declaration.
|
|
27
|
+
*/
|
|
28
|
+
export declare const COUNT_EPSILON: number;
|
|
29
|
+
/** A count or position argument, shifted by {@link COUNT_EPSILON} and truncated. */
|
|
30
|
+
export declare const excelCount: (count: number) => number;
|
|
15
31
|
/**
|
|
16
32
|
* The inverse hyperbolic tangent, decomposed the way a C library does it — the log form above
|
|
17
33
|
* half and `log1p` below — rather than through the platform's `Math.atanh`.
|
|
@@ -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.
|
|
@@ -62,8 +62,8 @@ export declare const binomialPdf: (k: number, n: number, p: number) => number;
|
|
|
62
62
|
* The CDF is the complement of a `1e-10` incomplete beta, ROUNDED to that same tolerance.
|
|
63
63
|
*
|
|
64
64
|
* The rounding is EXCEL'S, not a leftover: it is why a cumulative binomial in the bulk carries
|
|
65
|
-
* ten decimal places and no more. Taking it out moves answers AWAY from Excel
|
|
66
|
-
*
|
|
65
|
+
* ten decimal places and no more. Taking it out moves answers AWAY from Excel, so it is not a
|
|
66
|
+
* cleanup to make.
|
|
67
67
|
*/
|
|
68
68
|
export declare function binomialCdf(x: number, n: number, p: number): number;
|
|
69
69
|
export declare function negbinPdf(k: number, r: number, p: number): number;
|
|
@@ -85,8 +85,7 @@ export declare const betaInv: (p: number, alpha: number, beta: number) => number
|
|
|
85
85
|
* Half-width of the confidence interval around a mean, from the normal quantile.
|
|
86
86
|
*
|
|
87
87
|
* The `(1 + h) - 1` round trip is not redundant: it rounds the half-width against a unit
|
|
88
|
-
* magnitude, which moves the answer on most shapes.
|
|
89
|
-
* established, so the round trip stays.
|
|
88
|
+
* magnitude, which moves the answer on most shapes.
|
|
90
89
|
*/
|
|
91
90
|
export declare function normalConfidence(alpha: number, standardDev: number, size: number): number;
|
|
92
91
|
/** The same half-width from Student's t on `size - 1` degrees of freedom. */
|
|
@@ -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
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* them, and one without pivoting produces a different residue again.
|
|
10
10
|
*
|
|
11
11
|
* The inverse is this same decomposition followed by a forward and back SUBSTITUTION per unit
|
|
12
|
-
* column. Gauss-Jordan over `[A | I]` — the textbook alternative
|
|
13
|
-
*
|
|
12
|
+
* column. Gauss-Jordan over `[A | I]` — the textbook alternative — gives different answers on
|
|
13
|
+
* the same matrices.
|
|
14
14
|
*/
|
|
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
|
*/
|
|
@@ -57,8 +57,8 @@ export declare const upRegGamma: (a: number, x: number) => number;
|
|
|
57
57
|
* -a (u - ln(1+u)) - ln(1+u) - ln(a)/2 - ln(2 pi)/2 - stirlerr(a), u = x/a - 1
|
|
58
58
|
* ```
|
|
59
59
|
*
|
|
60
|
-
* whose every term is the size of the answer. Excel's
|
|
61
|
-
*
|
|
60
|
+
* whose every term is the size of the answer. It is Excel's form: `GAMMA.DIST(1E7,1E7,1,FALSE)`
|
|
61
|
+
* is exactly the value this returns.
|
|
62
62
|
*/
|
|
63
63
|
export declare function gammaLogPdf(a: number, x: number): number;
|
|
64
64
|
/** The inverse of {@link lowRegGamma} in its second argument. */
|
|
@@ -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 {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Scalar, Flatten, Omittable } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* Returns an array of historical quote data for a symbol and date range you specify.
|
|
4
|
+
* @param stock the ticker symbol of the financial instrument (`"IBM"`).
|
|
5
|
+
* @param startDate the first date to return data from.
|
|
6
|
+
* @param endDate the last date to return data from. Default is the start date.
|
|
7
|
+
* @param interval the granularity of the data: `0` daily, `1` weekly, `2` monthly. Default is `0`.
|
|
8
|
+
* @param headers whether to add column headers: `0` none, `1` a header row, `2` the instrument identifier and a header row. Default is `1`.
|
|
9
|
+
* @param properties the columns to return, each a number: `0` Date, `1` Close, `2` Open, `3` High, `4` Low, `5` Volume. Default is Date and Close.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* * The cell shows `#BUSY!` until the quotes arrive, then spills one row per bar, ascending.
|
|
13
|
+
* * Quotes come from [Alpha Vantage](https://www.alphavantage.co), which needs an API key:
|
|
14
|
+
* `ALPHAVANTAGE_API_KEY` on the global object or in the environment. Without one the service's
|
|
15
|
+
* `demo` key is used, which answers for `IBM` only. A free key allows 25 requests a day.
|
|
16
|
+
* * An unknown symbol is `#N/A`. A spent request budget is `#VALUE!` carrying the service's notice.
|
|
17
|
+
* * A recalculation does not ask again; the quotes are kept with the cell. Reopening the file does.
|
|
18
|
+
* * Excel accepts a Stock data type for `stock`; here it is the ticker text.
|
|
19
|
+
*/
|
|
20
|
+
export declare function STOCKHISTORY(stock: string, startDate: number, endDate?: Omittable<number>, interval?: Omittable<number>, headers?: Omittable<number>, properties?: Flatten<Scalar>): Scalar[][];
|
|
21
|
+
/**
|
|
22
|
+
* Returns the daily exchange rate of one currency in another over a period, from the European
|
|
23
|
+
* Central Bank's reference rates.
|
|
24
|
+
* @param from the currency to convert from, as an ISO code (`"USD"`).
|
|
25
|
+
* @param to the currency to convert to, as an ISO code (`"EUR"`).
|
|
26
|
+
* @param startDate the first date of the period.
|
|
27
|
+
* @param endDate the last date of the period. Default is the start date.
|
|
28
|
+
* @param headers whether to add column headers: `0` none, `1` a header row, `2` the pair and a header row. Default is `1`.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* * Spills one row per business day in the period, with the date and the rate. The cell shows
|
|
32
|
+
* `#BUSY!` until the rates arrive.
|
|
33
|
+
* * Rates are the ECB's daily reference rates (about 16:00 CET), published on TARGET business
|
|
34
|
+
* days; weekends and holidays have no row.
|
|
35
|
+
* * Both currencies must be among the roughly thirty the ECB publishes; another is `#N/A`.
|
|
36
|
+
* * A recalculation does not ask again; the rates are kept with the cell. Reopening the file does.
|
|
37
|
+
* * Data by [Frankfurter](https://frankfurter.dev), a free service with no key. Please do not abuse it.
|
|
38
|
+
*/
|
|
39
|
+
export declare function FXHISTORY(from: string, to: string, startDate: number, endDate?: Omittable<number>, headers?: Omittable<number>): Scalar[][];
|
|
40
|
+
//# sourceMappingURL=MarketHistory.d.ts.map
|
|
@@ -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.
|
|
@@ -70,11 +71,10 @@ export declare function DROP(array: IRange, row: number, columns?: Omittable<num
|
|
|
70
71
|
export declare function EXPAND(array: IRange | Scalar, row: Omittable<number>, columns?: Omittable<number>, padWith?: NoLift<Omittable<AcceptError<Scalar>>>): IRange;
|
|
71
72
|
/**
|
|
72
73
|
* Extracts a value from a field of a given record.
|
|
73
|
-
* @hidden Unimplemented RichData
|
|
74
74
|
* @param value The record from which you want to extract the field.
|
|
75
75
|
* @param fieldName The names of the field or fields that you want to extract.
|
|
76
76
|
*/
|
|
77
|
-
export declare function FIELDVALUE(value: IRichData
|
|
77
|
+
export declare function FIELDVALUE(value: AcceptError<IRichData>, fieldName: string): Scalar | IRange;
|
|
78
78
|
/**
|
|
79
79
|
* Filter a range or array.
|
|
80
80
|
* @param array the range or array to filter.
|
|
@@ -89,14 +89,13 @@ export declare function FILTER(array: Flatten<IRange>, include: Flatten<IRange<b
|
|
|
89
89
|
export declare function FORMULATEXT(reference: Flatten<IReferenceRange>): string;
|
|
90
90
|
/**
|
|
91
91
|
* Extracts data stored in a PivotTable.
|
|
92
|
-
* @hidden Unimplemented Pivot
|
|
93
92
|
* @param dataField is the name of the data field to extract data from.
|
|
94
93
|
* @param pivotTable is a reference to a cell or range of cells in the PivotTable that contains the data you want to retrieve.
|
|
95
94
|
* @param fieldItem the field/item pairs to refer to.
|
|
96
95
|
* @param fieldItem.field field to refer to.
|
|
97
96
|
* @param fieldItem.item field item to refer to.
|
|
98
97
|
*/
|
|
99
|
-
export declare function GETPIVOTDATA(dataField: string, pivotTable:
|
|
98
|
+
export declare function GETPIVOTDATA(dataField: string, pivotTable: Flatten<IReferenceRange>, fieldItem?: Repeating<[field: string, item?: Scalar]>): Scalar;
|
|
100
99
|
/**
|
|
101
100
|
* Looks for a value in the top row of a table or array of values and returns the value in the same column from a row you specify.
|
|
102
101
|
* @param lookupValue is the value to be found in the first row of the table and can be a value, a reference, or a text string.
|
|
@@ -112,21 +111,51 @@ export declare function HLOOKUP(lookupValue: Scalar, tableArray: Flatten<IRange>
|
|
|
112
111
|
export declare function HSTACK(array: Repeating<IRange, 254>): IRange;
|
|
113
112
|
/**
|
|
114
113
|
* Creates a shortcut or jump that opens a document stored on your hard drive, a network server, or on the Internet.
|
|
115
|
-
* @hidden Unimplemented RichData
|
|
116
114
|
* @param linkLocation is the text giving the path and file name to the document to be opened, a hard drive location, UNC address, or URL path.
|
|
117
115
|
* @param friendlyName is text or a number that is displayed in the cell. If omitted, the cell displays the linkLocation text.
|
|
116
|
+
* @returns A link that reads as its friendly name; a reference to it is a link too.
|
|
118
117
|
*/
|
|
119
|
-
export declare function HYPERLINK(linkLocation: string, friendlyName?:
|
|
118
|
+
export declare function HYPERLINK(linkLocation: string, friendlyName?: Scalar): IRichData;
|
|
119
|
+
/**
|
|
120
|
+
* How IMAGE sizes the picture in its cell.
|
|
121
|
+
*
|
|
122
|
+
* @remarks
|
|
123
|
+
* Declared `ReportType`: the body truncates the argument and refuses one outside 0-3.
|
|
124
|
+
*/
|
|
125
|
+
declare enum ImageSizing {
|
|
126
|
+
/**
|
|
127
|
+
* Fits the picture in the cell, keeping its aspect ratio.
|
|
128
|
+
* @name Fit to cell
|
|
129
|
+
*/
|
|
130
|
+
Fit = 0,
|
|
131
|
+
/**
|
|
132
|
+
* Fills the cell, ignoring the picture's aspect ratio.
|
|
133
|
+
* @name Fill cell
|
|
134
|
+
*/
|
|
135
|
+
Fill = 1,
|
|
136
|
+
/**
|
|
137
|
+
* Keeps the picture's own size, which may overflow the cell.
|
|
138
|
+
* @name Original size
|
|
139
|
+
*/
|
|
140
|
+
Original = 2,
|
|
141
|
+
/**
|
|
142
|
+
* Uses the height and width given.
|
|
143
|
+
* @name Custom size
|
|
144
|
+
*/
|
|
145
|
+
Custom = 3
|
|
146
|
+
}
|
|
120
147
|
/**
|
|
121
148
|
* Returns an image from a given source.
|
|
122
|
-
* @hidden Unimplemented RichData
|
|
123
149
|
* @param source The path of the source that points to the image.
|
|
124
150
|
* @param alternateText The alternative text that describes the image for accessibility.
|
|
125
151
|
* @param sizing The setting that determines the dimensions in which the image will be rendered in the cell.
|
|
126
152
|
* @param height The custom height of the image in pixels.
|
|
127
153
|
* @param width The custom width of the image in pixels.
|
|
154
|
+
* @returns The image, once it has loaded; `#BUSY!` until then, or the image it showed when a
|
|
155
|
+
* recalculation loads it again. A source that cannot be loaded is
|
|
156
|
+
* `#VALUE!`, or `#CONNECT!` when the server answers with an error.
|
|
128
157
|
*/
|
|
129
|
-
export declare function IMAGE(source: string, alternateText?: string
|
|
158
|
+
export declare function IMAGE(source: string, alternateText?: Omittable<string>, sizing?: Omittable<ReportType<ImageSizing>>, height?: Omittable<number>, width?: Omittable<number>): IRichData;
|
|
130
159
|
/**
|
|
131
160
|
* Returns a value or reference of the cell at the intersection of a particular row and column, in a given range.
|
|
132
161
|
* @param array is a range of cells or an array constant.
|
|
@@ -135,7 +164,7 @@ export declare function IMAGE(source: string, alternateText?: string, sizing?: n
|
|
|
135
164
|
* @param areaNum selects the area in Array or Reference from which to return a value. If omitted, the first area is used.
|
|
136
165
|
*
|
|
137
166
|
* @remarks
|
|
138
|
-
* Combines
|
|
167
|
+
* Combines the array and reference forms of INDEX using optional parameters.
|
|
139
168
|
*/
|
|
140
169
|
export declare function INDEX(array: Flatten<IRange>, rowNum: Omittable<number>, colNum?: Omittable<number | undefined, 0>, areaNum?: Omittable<number, 0>): any;
|
|
141
170
|
/**
|
|
@@ -156,7 +185,7 @@ export declare function LOOKUP(lookupValue: Scalar, lookupVector: Flatten<IRange
|
|
|
156
185
|
*
|
|
157
186
|
* @remarks
|
|
158
187
|
* Declared `ReportType`, as every numeric built-in enum is: the body keeps the verdict. It reads the
|
|
159
|
-
* argument by its SIGN
|
|
188
|
+
* argument by its SIGN.
|
|
160
189
|
*/
|
|
161
190
|
declare enum MatchType {
|
|
162
191
|
/**
|
|
@@ -196,7 +225,7 @@ export declare function OFFSET(reference: IReferenceRange, rows: number, cols: n
|
|
|
196
225
|
* @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.
|
|
197
226
|
* @returnKind number
|
|
198
227
|
*/
|
|
199
|
-
export declare function ROW(reference?: Flatten<IReferenceRange>): number[] | number[][];
|
|
228
|
+
export declare function ROW(reference?: Flatten<IReferenceRange>): number | number[] | number[][];
|
|
200
229
|
/**
|
|
201
230
|
* Returns the number of rows in a reference or array.
|
|
202
231
|
* @param array is an array, an array formula, or a reference to a range of cells for which you want the number of rows.
|
|
@@ -222,7 +251,7 @@ export declare function SORT(array: IRange | Scalar, sortIndex?: Omittable<IRang
|
|
|
222
251
|
* The direction SORT and SORTBY sort a key in.
|
|
223
252
|
*
|
|
224
253
|
* @remarks
|
|
225
|
-
* Declared `ReportType`, as every numeric built-in enum is:
|
|
254
|
+
* Declared `ReportType`, as every numeric built-in enum is: this argument FLOORS (`1.5` sorts
|
|
226
255
|
* ascending, `-1.5` is #VALUE!), which an enum's gate does not, so `_sortOrders` keeps the verdict.
|
|
227
256
|
* SORT takes an array of orders, one per key, so its slot is `IRange<ReportType<SortOrder>>`.
|
|
228
257
|
*/
|
|
@@ -257,8 +286,8 @@ export declare function TAKE(array: IRange, rows: Omittable<number>, columns?: O
|
|
|
257
286
|
* Which values to leave out.
|
|
258
287
|
*
|
|
259
288
|
* @remarks
|
|
260
|
-
* Declared `ReportType`:
|
|
261
|
-
* `3.9` reads 3
|
|
289
|
+
* Declared `ReportType`: this argument TRUNCATES on the way in (`TOCOL(a,1.9)` reads 1 and
|
|
290
|
+
* `3.9` reads 3), which an enum's gate does not, so the body keeps the verdict.
|
|
262
291
|
*/
|
|
263
292
|
declare enum IgnoreValues {
|
|
264
293
|
/**
|
|
@@ -347,7 +376,7 @@ export declare function WRAPROWS(vector: IRange | Scalar, wrapCount: number, pad
|
|
|
347
376
|
*
|
|
348
377
|
* @remarks
|
|
349
378
|
* Declared `ReportType`, as every numeric built-in enum is: the body keeps the verdict (anything
|
|
350
|
-
* else is #VALUE!).
|
|
379
|
+
* else is #VALUE!).
|
|
351
380
|
*/
|
|
352
381
|
declare enum MatchMode {
|
|
353
382
|
/**
|
|
@@ -376,7 +405,7 @@ declare enum MatchMode {
|
|
|
376
405
|
*
|
|
377
406
|
* @remarks
|
|
378
407
|
* Declared `ReportType`, as every numeric built-in enum is: the body keeps the verdict (anything
|
|
379
|
-
* else is #VALUE!).
|
|
408
|
+
* else is #VALUE!).
|
|
380
409
|
*/
|
|
381
410
|
declare enum SearchMode {
|
|
382
411
|
/**
|
|
@@ -8,9 +8,9 @@ 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
|
|
13
|
-
* overload discriminant
|
|
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
|
+
* overload discriminant: 14-19 take a trailing `k`.
|
|
14
14
|
*/
|
|
15
15
|
declare enum AggregateFunction {
|
|
16
16
|
/**
|
|
@@ -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
|
|
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
|
|
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 {
|
|
@@ -7,7 +7,7 @@ import { Scalar, IRange } from '@sheetxl/primitives';
|
|
|
7
7
|
* @param label optional label for the delay function.
|
|
8
8
|
* @category SheetXL
|
|
9
9
|
*/
|
|
10
|
-
export declare function DELAY(time: number, input: Scalar, label?: string):
|
|
10
|
+
export declare function DELAY(time: number, input: Scalar, label?: string): Scalar;
|
|
11
11
|
declare global {
|
|
12
12
|
var debugEventTarget: EventTarget | undefined;
|
|
13
13
|
}
|
|
@@ -24,5 +24,5 @@ declare global {
|
|
|
24
24
|
* (e.g. globalThis.debugEventTarget.dispatchEvent(new CustomEvent('test', { detail: "ping" }));
|
|
25
25
|
* @category SheetXL
|
|
26
26
|
*/
|
|
27
|
-
export declare function WAIT(type: string, input?: IRange):
|
|
27
|
+
export declare function WAIT(type: string, input?: IRange): string;
|
|
28
28
|
//# sourceMappingURL=Testing.d.ts.map
|
|
@@ -4,5 +4,5 @@ import { Scalar } from '@sheetxl/primitives';
|
|
|
4
4
|
* @param xml is a string in valid XML format.
|
|
5
5
|
* @param xpath is a string in standard XPath format.
|
|
6
6
|
*/
|
|
7
|
-
export declare function FILTERXML(xml: string, xpath: string):
|
|
7
|
+
export declare function FILTERXML(xml: string, xpath: string): Scalar[][];
|
|
8
8
|
//# sourceMappingURL=FilterXML.d.ts.map
|
|
@@ -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
|
package/types/src/web/Web.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare function ENCODEURL(text: string): string;
|
|
|
7
7
|
* Retrieves data from a web service.
|
|
8
8
|
* @param url is the URL of the web service.
|
|
9
9
|
*/
|
|
10
|
-
export declare function WEBSERVICE(url: string):
|
|
10
|
+
export declare function WEBSERVICE(url: string): string;
|
|
11
11
|
//# sourceMappingURL=Web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={ERF:{s:`Returns the error function.`,p:{lowerLimit:{d:`is the lower bound for integrating ERF.`},upperLimit:{d:`is the upper bound for integrating ERF.`}}},"ERF.PRECISE":{s:`Returns the error function.`,p:{x:{d:`is the lower bound for integrating ERF.PRECISE.`}}},ERFC:{s:`Returns the complementary error function.`,p:{x:{d:`is the lower bound for integrating ERF.`}}},"ERFC.PRECISE":{s:`Returns the complementary error function.`,p:{x:{d:`is the lower bound for integrating ERF.`}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={AND:{s:`Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE.`,p:{logical:{d:`are 1 to 255 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references.`}}},BYCOL:{s:`Applies a LAMBDA function to each column and returns an array of the results.`,p:{array:{d:`is an array to be separated by column.`},fn:{d:`is a LAMBDA that takes a column as its single parameter and returns one result for it.`}}},BYROW:{s:`Applies a LAMBDA function to each row and returns an array of the results.`,p:{array:{d:`is an array to be separated by row.`},fn:{d:`is a LAMBDA that takes a row as its single parameter and returns one result for it.`}}},FALSE:{s:`Returns the logical value FALSE.`,p:{}},FLATTEN:{s:`Flattens all the values from one or more ranges into a single column.`,c:`Sheets`,p:{ranges:{d:`One or more ranges or scalar values to flatten.`}}},IF:{s:`Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE.`,p:{logicalTest:{d:`is any value or expression that can be evaluated to TRUE or FALSE.`},valueIfTrue:{d:`is the value that is returned if logicalTest is TRUE. If omitted, TRUE is returned. You can nest up to seven IF functions.`},valueIfFalse:{d:`is the value that is returned if logicalTest is FALSE. If omitted, FALSE is returned.`}}},IFERROR:{s:`Returns valueIfError if expression is an error and the value of the expression itself otherwise.`,p:{value:{d:`is any value or expression or reference.`},valueIfError:{d:`is any value or expression or reference.`}}},IFNA:{s:`Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.`,p:{value:{d:`is any value or expression or reference.`},valueIfNA:{d:`is any value or expression or reference.`}}},IFS:{s:`Checks whether one or more conditions are met and returns a value corresponding to the first TRUE condition.`,p:{condition:{d:`the conditions to test and the values to return for them.`},"condition.logicalTest":{d:`is any value or expression that can be evaluated to TRUE or FALSE.`},"condition.logicalTrue":{d:`is the value returned if logicalTest is TRUE.`}}},LAMBDA:{s:`Creates a function value which can be called within formulas.`,p:{parameterOrCalculation:{d:`a parameter or a calculation that returns a value. If a parameter, it must be the last argument.`}}},LET:{s:`Assigns calculation results to names. Useful for storing intermediate calculations and values by defining names inside a formula. These names only apply within the scope of the LET function.`,p:{name:{d:`the name, or a calculation which can make use of all names within the LET. Names must start with a letter, cannot be the output of a formula, or conflict with range syntax.`},nameOrValue:{d:`the value associated with the name.`},calculationOrName:{},rest:{}}},MAKEARRAY:{s:`Returns a calculated array of a specified row and column size, by applying a LAMBDA function.`,p:{rows:{d:`is the number of rows in the array. Must be greater than zero.`},columns:{d:`is the number of columns in the array. Must be greater than zero.`},fn:{d:`is a LAMBDA that is called to create the array. The LAMBDA takes two parameters, row index and column index.`}}},MAP:{s:`Returns an array formed by 'mapping' each value in the array(s) to a new value by applying a lambda to create a new value.`,p:{array:{d:`is an array to be mapped.`},lambdaOrArray:{d:`is a LAMBDA which must be the last argument and must have a parameter for each array passed, or another array to be mapped.`}}},NOT:{s:`Changes FALSE to TRUE, or TRUE to FALSE.`,p:{logical:{d:`is a value or expression that can be evaluated to TRUE or FALSE.`}}},OR:{s:`Checks whether any of the arguments are TRUE, and returns TRUE or FALSE. Returns FALSE only if all arguments are FALSE.`,p:{logical:{d:`are 1 to 255 conditions that you want to test that can be either TRUE or FALSE.`}}},REDUCE:{s:`Reduces an array to an accumulated value by applying a LAMBDA function to each value and returning the total value in the accumulator.`,p:{initialValue:{d:`is the starting value for the accumulator.`},array:{d:`is an array to be reduced.`},fn:{d:`is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.`}}},REDUCEIF:{s:`Reduces the cells specified by a given condition or criteria.`,c:`SheetXL`,p:{range:{d:`is the range of cells you want evaluated.`},criteria:{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be reduced.`},reduceRange:{d:`are the actual cells to reduce. If omitted, the cells in range are used. This can be blank.`},fn:{d:`is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.`}}},SCAN:{s:`Scans an array by applying a LAMBDA function to each value and returns an array that has each intermediate value.`,p:{initialValue:{d:`is the starting value for the accumulator.`},array:{d:`is an array to be reduced.`},fn:{d:`is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.`}}},SWITCH:{s:`Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value is returned.`,p:{expression:{d:`is an expression to be evaluated.`},match:{d:`the values to compare against expression and the results to return for them.`},"match.value":{d:`is a value to compare against expression.`},"match.result":{d:`is a result to be returned if the corresponding value matches expression.`},defaultResult:{d:`is the result to be returned when no value matches expression.`}}},TRUE:{s:`Returns the logical value TRUE.`,p:{}},XOR:{s:`Returns a logical 'Exclusive Or' of all arguments.`,p:{logical:{d:`are 1 to 254 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references.`}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={CONVERT:{s:`Converts a number from one measurement system to another.`,p:{number:{d:`is the value in fromUnit to convert.`},fromUnit:{d:`is the units for number.`},toUnit:{d:`is the units for the result.`}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.default={CELL:{s:`Returns information about the cell.`,p:{infoType:{d:`The type of information to return.`},reference:{d:`The cell to report on. Defaults to the cell holding the formula.`}}},"ERROR.TYPE":{s:`Returns a number matching an error value.`,p:{errorVal:{d:`is the error value for which you want the identifying number, and can be an actual error value or a reference to a cell containing an error value.`}}},INFO:{s:`Returns information about the current operating system.`,p:{typeText:{d:`The type of information to return.`}}},ISBLANK:{s:`Checks whether a reference is to an empty cell, and returns TRUE or FALSE.`,p:{value:{d:`is the cell or a name that refers to the cell you want to test.`}}},ISDATE:{s:`Returns TRUE if the value is a date.`,c:`Sheets`,p:{value:{d:`The value to check.`}}},ISEMAIL:{s:`Returns TRUE if the value is a valid email address.`,c:`Sheets`,p:{value:{d:`The value to check.`}}},ISERR:{s:`Checks whether a value is an error other than #N/A, and returns TRUE or FALSE.`,p:{value:{d:`is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.`}}},ISERROR:{s:`Checks whether a value is an error, and returns TRUE or FALSE`,p:{value:{d:`is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value`}}},ISEVEN:{s:`Returns TRUE if the number is even.`,p:{number:{d:`is the value to test.`}}},ISFORMULA:{s:`Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE.`,p:{reference:{d:`is a reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell.`}}},ISLOGICAL:{s:`Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE.`,p:{value:{d:`is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.`}}},ISNA:{s:`Checks whether a value is #N/A, and returns TRUE or FALSE.`,p:{value:{d:`is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.`}}},ISNONTEXT:{s:`Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE.`,p:{value:{d:`is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value.`}}},ISNUMBER:{s:`Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE.`,p:{value:{d:`is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value.`}}},ISODD:{s:`Returns TRUE if the number is odd.`,p:{number:{d:`is the value to test.`}}},ISOMITTED:{s:`Checks whether the value is omitted, and returns TRUE or FALSE.`,p:{argument:{d:`is the value you want to test, such as a LAMBDA parameter.`}}},ISURL:{s:`Returns TRUE if the value is a valid HTTP or HTTPS URL.`,c:`Sheets`,p:{value:{d:`The value to check.`}}},ISREF:{s:`Checks whether a value is a reference, and returns TRUE or FALSE.`,p:{value:{d:`is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.`}}},ISTEXT:{s:`Converts a value to text in a specific number format.`,p:{value:{d:`is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.`}}},N:{s:`Converts non-number value to a number, dates to serial numbers, TRUE to 1, anything else to 0 (zero).`,p:{value:{d:`is the value to convert.`}}},NA:{s:`Returns the #N/A error value`,p:{}},SHEET:{s:`Returns the sheet number of the referenced sheet.`,p:{value:{d:`is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned.`}}},SHEETS:{s:`Returns the number of sheets in a reference.`,p:{reference:{d:`is a reference for which you want to know the number of sheets it contains. If omitted the number of sheets in the workbook containing the function is returned.`}}},TYPE:{s:`Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128.`,p:{value:{d:`is the value to check.`}}}},exports.enums={CellInfoType:{s:`The information to return about the cell.`,m:{Address:{d:`Reference of the first cell in the reference, as text.`},Col:{d:`Column number of the cell in the reference.`},Color:{d:`1 if the cell is formatted in color for negative values; otherwise 0.`},Contents:{d:`Value of the upper-left cell in the reference; not a formula.`},Filename:{d:`Full path of the file that contains the reference, as text.`},Format:{d:`Text value corresponding to the number format of the cell.`},Parentheses:{d:`1 if the cell is formatted with parentheses for positive or all values; otherwise 0.`},Prefix:{d:`Text value corresponding to the label prefix of the cell.`},Protect:{d:`0 if the cell is not locked; otherwise 1.`},Row:{d:`Row number of the cell in the reference.`},Type:{d:`"b" for a blank cell, "l" for a text constant, "v" for anything else.`},Width:{d:`Column width of the cell, rounded to an integer.`}}},InfoType:{s:`The information to return about the operating environment.`,m:{Directory:{d:`Path of the current directory or folder.`},"Mem Avail":{d:`Amount of memory available. Legacy: answers #N/A.`},"Mem Used":{d:`Amount of memory being used for data. Legacy: answers #N/A.`},"Num File":{d:`Number of active worksheets in the open workbooks.`},Origin:{d:`Absolute reference of the top and leftmost visible cell.`},"OS Version":{d:`Current operating system version, as text.`},Recalc:{d:`Current recalculation mode; "Automatic" or "Manual".`},Release:{d:`Version of the application, as text.`},System:{d:`Name of the operating environment; "pcdos" or "mac".`},"Tot Mem":{d:`Total memory available. Legacy: answers #N/A.`},User:{d:`The licensed user. Not part of Excel.`}}}};
|