mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
// Type definitions for text-clipper 1.2
|
|
// Project: https://github.com/arendjr/text-clipper
|
|
// Definitions by: Krzysztof Grzybek <https://github.com/krzysztof-grzybek>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface Options {
|
|
breakWords?: boolean;
|
|
html?: boolean;
|
|
imageWeight?: number;
|
|
indicator?: string;
|
|
maxLines?: number;
|
|
}
|
|
|
|
declare function clip(string: string, maxLength: number, options?: Options): string;
|
|
export = clip;
|