repeat.d.ts 328 B

123456789101112131415
  1. /**
  2. * 将字符串重复 n 次
  3. * @param str 字符串
  4. * @param count 次数
  5. */
  6. export declare function repeat(str: string, count: number): string;
  7. export declare function repeat(str: any, count: number): string;
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. repeat: typeof repeat;
  11. }
  12. }
  13. export default repeat