padStart.d.ts 456 B

12345678910111213141516
  1. /**
  2. * 用指定字符从前面开始补全字符串
  3. * @param str 字符串
  4. * @param targetLength 结果长度
  5. * @param padString 补全字符
  6. */
  7. export declare function padStart(str: string, targetLength: number, padString?: string): string;
  8. export declare function padStart(str: any, targetLength: number, padString?: any): string;
  9. declare module './ctor' {
  10. interface XEUtilsMethods {
  11. padStart: typeof padStart;
  12. }
  13. }
  14. export default padStart