pangea-helpers 1.3.46 → 1.3.48
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.
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export declare function
|
|
2
|
-
export declare function
|
|
1
|
+
export declare function getCurrentYearStartDate(): Date;
|
|
2
|
+
export declare function getNextYearStartDate(): Date;
|
|
3
|
+
export declare function getCurrentMonthStartDate(): Date;
|
|
4
|
+
export declare function getNextMonthStartDate(): Date;
|
|
5
|
+
export declare function getCurrentDayStartDate(): Date;
|
|
6
|
+
export declare function getNextDayStartDate(): Date;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare function sumWithUnits(first: string, ...rest: string[]): string;
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
2
|
+
type RoundDirection = 'round' | 'ceil' | 'floor';
|
|
3
|
+
export declare function roundNumber(number: number, roundTo: number, roundDirection?: RoundDirection): number;
|
|
4
|
+
export declare function roundDecimals(number: number, decimals?: number, roundDirection?: RoundDirection): number;
|
|
5
|
+
export {};
|
package/dist/helpers/object.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function copyAvailableFields(destinationObj?: Object, originObj?:
|
|
|
6
6
|
export declare function removeProps<T extends Object, K extends keyof T>(obj: T, props: K | K[]): Omit<T, K>;
|
|
7
7
|
export declare function isObject(val: any): boolean;
|
|
8
8
|
export declare function merge(target: Object, source: Object): void;
|
|
9
|
-
export declare function mergeDeep<T>(obj1:
|
|
9
|
+
export declare function mergeDeep<T extends Object, S extends Object>(obj1: T, obj2: S): T & S;
|
|
10
10
|
export declare function filterKeys(objectWithTheKeys: Object, objectToFilter: Object): Object;
|
|
11
11
|
export declare function filterKeysDeep(objectWithTheKeys: Object, objectToFilter: Object): Object;
|
|
12
12
|
export {};
|