mixlea-utils-js 0.1.53 → 0.1.55
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/mixlea-utils-js.js +883 -873
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +6 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -577,6 +577,8 @@ export declare function getFileTypeFromPath(path: string): {
|
|
|
577
577
|
*/
|
|
578
578
|
export declare function getHexPercentColor(hexColor: string, percentage: number): string;
|
|
579
579
|
|
|
580
|
+
export declare function getMonthEndTimestamp(value: any, defaultValue: number): number;
|
|
581
|
+
|
|
580
582
|
export declare function getMonthStartTimestamp(value: any, defaultValue: number): number;
|
|
581
583
|
|
|
582
584
|
export declare function getNextMonthDate(value: any, defaultValue?: Date): Date;
|
|
@@ -744,7 +746,7 @@ export declare function isFasly(val: any): val is false;
|
|
|
744
746
|
|
|
745
747
|
export declare function isFormData(input: any): input is FormData;
|
|
746
748
|
|
|
747
|
-
export declare function isFunction<T extends
|
|
749
|
+
export declare function isFunction<T extends (...args: any[]) => any>(input: unknown): input is T;
|
|
748
750
|
|
|
749
751
|
export declare function isHtmlElement(input: any): input is HTMLElement;
|
|
750
752
|
|
|
@@ -797,6 +799,8 @@ export declare function isSomeVoid(...items: any[]): boolean;
|
|
|
797
799
|
|
|
798
800
|
export declare function isString(value: unknown): value is string;
|
|
799
801
|
|
|
802
|
+
export declare function isTimestamp(input: any): boolean;
|
|
803
|
+
|
|
800
804
|
export declare function isTreeBranch<T extends Record<string, any>>(node: T, opts?: {
|
|
801
805
|
leafField?: string;
|
|
802
806
|
}): boolean;
|
|
@@ -1198,6 +1202,7 @@ export declare function rangeDateFormatter<T = unknown>(value: T): string;
|
|
|
1198
1202
|
|
|
1199
1203
|
export declare function rangeMonthFormatter<T = unknown>(value: T): string;
|
|
1200
1204
|
|
|
1205
|
+
/** TODO: 值类型检测需更完善一点 */
|
|
1201
1206
|
export declare function rangeYearFormatter<T = unknown>(value: T): string;
|
|
1202
1207
|
|
|
1203
1208
|
export declare function readBlobAsBuffer(bolb: Blob): Promise<ArrayBuffer>;
|