@zhazhazhu/charge-waterfall
Version:
使用纯TypeScript编写的瀑布流工具插件,定宽不定高。简单好用,配置方便,纯中文提示,即插即用。适用于JS、Vue、React、Angular
8 lines (7 loc) • 566 B
TypeScript
declare type DataType = "undefined" | "null" | "boolean" | "string" | "number" | "bigint" | "object" | "symbol" | "array" | "date" | string;
export declare function getTypeof(data: any): DataType;
export declare function isPlainObject(data: any): data is Object;
export declare function throttle(fn: Function, wait?: number): (this: any, ...args: any[]) => void;
export declare function debounce(fn: Function, wait?: number): (this: any, ...args: any[]) => void;
export declare function loadAsyncImage(imageUrl: string): Promise<HTMLImageElement>;
export {};