UNPKG

441 BTypeScriptView Raw
1/**
2 * A truncation feature where the ellipsis will be placed at the end of the URL.
3 *
4 * @param {String} anchorText
5 * @param {Number} truncateLen The maximum length of the truncated output URL string.
6 * @param {String} ellipsisChars The characters to place within the url, e.g. "..".
7 * @return {String} The truncated URL.
8 */
9export declare function truncateEnd(anchorText: string, truncateLen: number, ellipsisChars?: string): string;