UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

26 lines (25 loc) 580 B
/** * 获取随机字符串 * @param {number} length 字符串长度,默认 32 * @returns {string} 字符串 * @example * ```ts * randomString() * * randomString(16) * ``` */ export declare function randomString(e?: number): string; /** * 获取随机字符串 * @param {number} length 字符串长度,默认 32 * @returns {string} 字符串 * @example * ```ts * randomString() * * randomString(16) * ``` */ export declare const getRandomString: typeof randomString; export declare const uniqueFactory: (compName: string, prefix?: string) => () => string;