mixlea-utils-js 0.1.54 → 0.1.56
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 +860 -849
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -746,7 +746,7 @@ export declare function isFasly(val: any): val is false;
|
|
|
746
746
|
|
|
747
747
|
export declare function isFormData(input: any): input is FormData;
|
|
748
748
|
|
|
749
|
-
export declare function isFunction<T extends
|
|
749
|
+
export declare function isFunction<T extends (...args: any[]) => any>(input: unknown): input is T;
|
|
750
750
|
|
|
751
751
|
export declare function isHtmlElement(input: any): input is HTMLElement;
|
|
752
752
|
|
|
@@ -799,6 +799,8 @@ export declare function isSomeVoid(...items: any[]): boolean;
|
|
|
799
799
|
|
|
800
800
|
export declare function isString(value: unknown): value is string;
|
|
801
801
|
|
|
802
|
+
export declare function isTimestamp(input: any): boolean;
|
|
803
|
+
|
|
802
804
|
export declare function isTreeBranch<T extends Record<string, any>>(node: T, opts?: {
|
|
803
805
|
leafField?: string;
|
|
804
806
|
}): boolean;
|
|
@@ -1200,6 +1202,7 @@ export declare function rangeDateFormatter<T = unknown>(value: T): string;
|
|
|
1200
1202
|
|
|
1201
1203
|
export declare function rangeMonthFormatter<T = unknown>(value: T): string;
|
|
1202
1204
|
|
|
1205
|
+
/** TODO: 值类型检测需更完善一点 */
|
|
1203
1206
|
export declare function rangeYearFormatter<T = unknown>(value: T): string;
|
|
1204
1207
|
|
|
1205
1208
|
export declare function readBlobAsBuffer(bolb: Blob): Promise<ArrayBuffer>;
|