jsfast
Version:
Fastjs(jsfast) is a useful, lightweight JavaScript library for any types of project.
15 lines (14 loc) • 736 B
TypeScript
import * as rand from "./rand";
declare const _default: {
rand(min: number, max: number, decimal?: number): number;
randString(length: number, options?: Partial<rand.RandStringOptions>): string;
uuid(): string;
copy(text: string): Promise<void>;
callUntilEnd(func: (end: () => boolean) => Promise<void | boolean> | void | boolean, timeout: number, immediate?: boolean, continueEvenError?: boolean): Promise<void>;
catchError(func: () => Promise<any> | any, onError?: (error: Error) => void): Promise<any> | any;
secureCall(func: () => Promise<any> | any): [any, Error | null] | Promise<[any, Error | null]>;
};
export default _default;
export * from "./dom";
export * from "./rand";
export * from "./basic";