11 lines
170 B
TypeScript
11 lines
170 B
TypeScript
|
declare function truncate(
|
||
|
txt: string,
|
||
|
width: number,
|
||
|
options?: {
|
||
|
ellipsis?: string;
|
||
|
separator: string;
|
||
|
}
|
||
|
): string;
|
||
|
|
||
|
export = truncate;
|