Files
DefinitelyTyped/types/clamp-js-main/index.d.ts
Sinziana Nicolae b2fdfe631f Fix linting issues
2017-12-10 20:30:07 +02:00

21 lines
625 B
TypeScript

// Type definitions for clamp-js-main 0.11
// Project: https://github.com/jmenglis/clamp-js-main#readme
// Definitions by: Sinziana Nicolae <https://github.com/sinziananicolae>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface ClampOptions {
clamp?: number|string;
useNativeClamp?: boolean;
splitOnChars?: string[];
animate?: boolean;
truncationChar?: string;
truncationHTML?: string | null;
}
export interface ClampResponse {
original: string;
clamped: string;
}
export default function clamp(element: HTMLElement, options?: ClampOptions): ClampResponse;