repeat.d.ts 417 B

123456789101112131415161718192021
  1. import { XEUtilsMethods } from '../xe-utils'
  2. /**
  3. * 将字符串重复 n 次
  4. * @param str 字符串
  5. * @param count 次数
  6. */
  7. export declare function repeat(str: string, count: number): string;
  8. declare module '../xe-utils' {
  9. interface XEUtilsMethods {
  10. /**
  11. * 将字符串重复 n 次
  12. * @param str 字符串
  13. * @param count 次数
  14. */
  15. repeat: typeof repeat;
  16. }
  17. }
  18. export default repeat