@fileverse-dev/formulajs 4.4.32 → 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 +242 -27
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +267 -3
- package/lib/esm/index.mjs +263 -4
- package/package.json +2 -2
- package/types/cjs/index.d.cts +8 -3
- package/types/esm/index.d.mts +7 -2
package/types/esm/index.d.mts
CHANGED
|
@@ -970,7 +970,7 @@ export function CUMPRINC(rate: any, nper: any, pv: any, start_period: any, end:
|
|
|
970
970
|
* @param {*} day Day
|
|
971
971
|
* @returns
|
|
972
972
|
*/
|
|
973
|
-
export function DATE(year: any, month: any, day: any):
|
|
973
|
+
export function DATE(year: any, month: any, day: any): string | number | Error;
|
|
974
974
|
/**
|
|
975
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.
|
|
976
976
|
*
|
|
@@ -3058,7 +3058,7 @@ export function NOT(logical: any): boolean | Error;
|
|
|
3058
3058
|
*
|
|
3059
3059
|
* @returns
|
|
3060
3060
|
*/
|
|
3061
|
-
export function NOW():
|
|
3061
|
+
export function NOW(): string | number;
|
|
3062
3062
|
/**
|
|
3063
3063
|
* Returns the number of periods for an investment.
|
|
3064
3064
|
*
|
|
@@ -4591,11 +4591,16 @@ export namespace Z {
|
|
|
4591
4591
|
* @returns
|
|
4592
4592
|
*/
|
|
4593
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)[][];
|
|
4594
4598
|
export namespace utils {
|
|
4595
4599
|
export { errors };
|
|
4596
4600
|
export { symbols };
|
|
4597
4601
|
export { date };
|
|
4598
4602
|
}
|
|
4603
|
+
export function workdayIntl(startDate: any, numDays: any, weekend?: number, holidays?: any[]): Date;
|
|
4599
4604
|
declare var errors: Readonly<{
|
|
4600
4605
|
__proto__: any;
|
|
4601
4606
|
data: Error;
|