@fileverse-dev/formulajs 4.4.31 → 4.4.33
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/lib/browser/formula.js +12048 -2104
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +10772 -37
- package/lib/esm/crypto-constants.mjs +31 -0
- package/lib/esm/index.mjs +10767 -38
- package/package.json +6 -2
- package/types/cjs/index.d.cts +506 -440
- package/types/esm/index.d.mts +17 -11
package/types/esm/index.d.mts
CHANGED
|
@@ -609,6 +609,7 @@ export function CHITEST(actual_range: any, expected_range: any, ...args: any[]):
|
|
|
609
609
|
* @returns
|
|
610
610
|
*/
|
|
611
611
|
export function CHOOSE(...args: any[]): any;
|
|
612
|
+
export function CIRCLES(...args: any[]): Promise<any>;
|
|
612
613
|
/**
|
|
613
614
|
* Removes all nonprintable characters from text.
|
|
614
615
|
*
|
|
@@ -969,7 +970,7 @@ export function CUMPRINC(rate: any, nper: any, pv: any, start_period: any, end:
|
|
|
969
970
|
* @param {*} day Day
|
|
970
971
|
* @returns
|
|
971
972
|
*/
|
|
972
|
-
export function DATE(year: any, month: any, day: any):
|
|
973
|
+
export function DATE(year: any, month: any, day: any): string | number | Error;
|
|
973
974
|
/**
|
|
974
975
|
* Calculates the number of days, months, or years between two dates. This function is useful in formulas where you need to calculate an age.
|
|
975
976
|
*
|
|
@@ -995,7 +996,7 @@ export function DATEDIF(start_date: any, end_date: any, unit: any): number | Err
|
|
|
995
996
|
* @param {*} date_text Text that represents a date in an Excel date format, or a reference to a value that contains text that represents a date in an Excel date format.
|
|
996
997
|
* @returns
|
|
997
998
|
*/
|
|
998
|
-
export function DATEVALUE(date_text: any): number |
|
|
999
|
+
export function DATEVALUE(date_text: any): number | Error | Date;
|
|
999
1000
|
/**
|
|
1000
1001
|
* Returns the average of selected database entries.
|
|
1001
1002
|
*
|
|
@@ -1162,7 +1163,7 @@ export function DEGREES(angle: any): number | Error;
|
|
|
1162
1163
|
* @param {*} number2 Optional. The second number. If omitted, number2 is assumed to be zero.
|
|
1163
1164
|
* @returns
|
|
1164
1165
|
*/
|
|
1165
|
-
export function DELTA(number1: any, number2: any):
|
|
1166
|
+
export function DELTA(number1: any, number2: any): Error | 0 | 1;
|
|
1166
1167
|
/**
|
|
1167
1168
|
* Returns the sum of squares of deviations.
|
|
1168
1169
|
*
|
|
@@ -1363,7 +1364,7 @@ export function EOA(...args: any[]): Promise<any>;
|
|
|
1363
1364
|
* @param {*} months The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.
|
|
1364
1365
|
* @returns
|
|
1365
1366
|
*/
|
|
1366
|
-
export function EOMONTH(start_date: any, months: any): number |
|
|
1367
|
+
export function EOMONTH(start_date: any, months: any): number | Error | Date;
|
|
1367
1368
|
/**
|
|
1368
1369
|
* Returns the error function.
|
|
1369
1370
|
*
|
|
@@ -1386,7 +1387,7 @@ export function ERFC(x: any): any;
|
|
|
1386
1387
|
export const ERFCPRECISE: any;
|
|
1387
1388
|
export const ERFPRECISE: any;
|
|
1388
1389
|
export namespace ERROR {
|
|
1389
|
-
function TYPE(error_val: any): Error | 1 | 2 | 3 | 4 |
|
|
1390
|
+
function TYPE(error_val: any): Error | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
1390
1391
|
}
|
|
1391
1392
|
export function ETHERSCAN(...args: any[]): Promise<any>;
|
|
1392
1393
|
/**
|
|
@@ -1732,7 +1733,7 @@ export function FORECAST(x: any, known_ys: any, known_xs: any): number | Error;
|
|
|
1732
1733
|
* @param {*} bins_array An array of or reference to intervals into which you want to group the values in data_array. If bins_array contains no values, FREQUENCY returns the number of elements in data_array.
|
|
1733
1734
|
* @returns
|
|
1734
1735
|
*/
|
|
1735
|
-
export function FREQUENCY(data_array: any, bins_array: any): number[]
|
|
1736
|
+
export function FREQUENCY(data_array: any, bins_array: any): Error | number[];
|
|
1736
1737
|
/**
|
|
1737
1738
|
* Returns the result of an F-test.
|
|
1738
1739
|
*
|
|
@@ -1911,7 +1912,7 @@ export function GNOSIS(...args: any[]): Promise<any>;
|
|
|
1911
1912
|
- If const is FALSE, b is set equal to 1 and the m-values are adjusted so that y = m^x.
|
|
1912
1913
|
* @returns
|
|
1913
1914
|
*/
|
|
1914
|
-
export function GROWTH(known_y: any, known_x: any, new_x: any, use_const: any): number[]
|
|
1915
|
+
export function GROWTH(known_y: any, known_x: any, new_x: any, use_const: any): Error | number[];
|
|
1915
1916
|
/**
|
|
1916
1917
|
* Returns the harmonic mean.
|
|
1917
1918
|
*
|
|
@@ -2524,7 +2525,7 @@ export function LENS(...args: any[]): Promise<{
|
|
|
2524
2525
|
- If known_x's is omitted, it is assumed to be the array {1,2,3,...} that is the same size as known_y's.
|
|
2525
2526
|
* @returns
|
|
2526
2527
|
*/
|
|
2527
|
-
export function LINEST(known_y: any, known_x: any): number[]
|
|
2528
|
+
export function LINEST(known_y: any, known_x: any): Error | number[];
|
|
2528
2529
|
/**
|
|
2529
2530
|
* Returns the natural logarithm of a number.
|
|
2530
2531
|
*
|
|
@@ -2566,7 +2567,7 @@ export function LOG10(number: any): number | Error;
|
|
|
2566
2567
|
- If known_x's is omitted, it is assumed to be the array {1,2,3,...} that is the same size as known_y's.
|
|
2567
2568
|
* @returns
|
|
2568
2569
|
*/
|
|
2569
|
-
export function LOGEST(known_y: any, known_x: any): number[]
|
|
2570
|
+
export function LOGEST(known_y: any, known_x: any): Error | number[];
|
|
2570
2571
|
/**
|
|
2571
2572
|
* Returns the inverse of the lognormal cumulative distribution.
|
|
2572
2573
|
*
|
|
@@ -3057,7 +3058,7 @@ export function NOT(logical: any): boolean | Error;
|
|
|
3057
3058
|
*
|
|
3058
3059
|
* @returns
|
|
3059
3060
|
*/
|
|
3060
|
-
export function NOW():
|
|
3061
|
+
export function NOW(): string | number;
|
|
3061
3062
|
/**
|
|
3062
3063
|
* Returns the number of periods for an investment.
|
|
3063
3064
|
*
|
|
@@ -3718,7 +3719,7 @@ export function SERIESSUM(x: any, n: any, m: any, coefficients: any): number | E
|
|
|
3718
3719
|
* @param {*} number Any real number.
|
|
3719
3720
|
* @returns
|
|
3720
3721
|
*/
|
|
3721
|
-
export function SIGN(number: any):
|
|
3722
|
+
export function SIGN(number: any): Error | 0 | 1 | -1;
|
|
3722
3723
|
/**
|
|
3723
3724
|
* Returns the sine of the given angle.
|
|
3724
3725
|
*
|
|
@@ -4590,11 +4591,16 @@ export namespace Z {
|
|
|
4590
4591
|
* @returns
|
|
4591
4592
|
*/
|
|
4592
4593
|
export function ZTEST(array: any, x: any, sigma: any): number | Error;
|
|
4594
|
+
export function epochToDate(timestamp: any, timeUnit?: number): Date;
|
|
4595
|
+
export function networkDays(startDate: any, endDate: any, holidays?: any[]): number;
|
|
4596
|
+
export function networkDaysIntl(startDate: any, endDate: any, weekend?: number, holidays?: any[]): number;
|
|
4597
|
+
export function sequence(rows: any, columns?: number, start?: number, step?: number): (number | Date)[][];
|
|
4593
4598
|
export namespace utils {
|
|
4594
4599
|
export { errors };
|
|
4595
4600
|
export { symbols };
|
|
4596
4601
|
export { date };
|
|
4597
4602
|
}
|
|
4603
|
+
export function workdayIntl(startDate: any, numDays: any, weekend?: number, holidays?: any[]): Date;
|
|
4598
4604
|
declare var errors: Readonly<{
|
|
4599
4605
|
__proto__: any;
|
|
4600
4606
|
data: Error;
|