di-shan-utils
Version:
JavaScript 函数库、工具类
16 lines (13 loc) • 328 B
TypeScript
/**
* 将字符串重复 n 次
* @param str 字符串
* @param count 次数
*/
export declare function repeat(str: string, count: number): string;
export declare function repeat(str: any, count: number): string;
declare module './ctor' {
interface DIUtilsMethods {
repeat: typeof repeat;
}
}
export default repeat