24 lines
582 B
TypeScript
24 lines
582 B
TypeScript
import { XEUtilsMethods } from '../xe-utils'
|
|
|
|
/**
|
|
* 用指定字符从后面开始补全字符串
|
|
* @param str 字符串
|
|
* @param targetLength 结果长度
|
|
* @param padString 补全字符
|
|
*/
|
|
export declare function padEnd(str: string, targetLength: number, padString?: string): string;
|
|
|
|
declare module '../xe-utils' {
|
|
interface XEUtilsMethods {
|
|
/**
|
|
* 用指定字符从后面开始补全字符串
|
|
* @param str 字符串
|
|
* @param targetLength 结果长度
|
|
* @param padString 补全字符
|
|
*/
|
|
padEnd: typeof padEnd;
|
|
}
|
|
}
|
|
|
|
export default padEnd
|