@ztimson/utils 0.22.10 → 0.23.0
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/dist/index.cjs +41 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +41 -11
- package/dist/index.mjs.map +1 -1
- package/dist/time.d.ts +1 -2
- package/package.json +1 -1
package/dist/time.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* @return {() => void}
|
|
6
6
|
*/
|
|
7
7
|
export declare function adjustedInterval(cb: Function, ms: number): () => void;
|
|
8
|
-
export declare function adjustTz(date: Date, offset: number): Date;
|
|
9
8
|
/**
|
|
10
9
|
* Format date
|
|
11
10
|
*
|
|
@@ -14,7 +13,7 @@ export declare function adjustTz(date: Date, offset: number): Date;
|
|
|
14
13
|
* @param tz Override timezone, can be either string or number
|
|
15
14
|
* @return {string} Formated date
|
|
16
15
|
*/
|
|
17
|
-
export declare function formatDate(date: Date | number | string, format?: string, tz?:
|
|
16
|
+
export declare function formatDate(date: Date | number | string, format?: string, tz?: string | number): string;
|
|
18
17
|
/**
|
|
19
18
|
* Run a function immediately & repeat every x ms
|
|
20
19
|
*
|