DefinitelyTyped/types/text-clipper/index.d.ts
Krzysztof Grzybek 05763bae96 add text clipper
2019-01-28 21:01:19 +01:00

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;