mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
708 B
TypeScript
24 lines
708 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
|
|
|
|
declare namespace clamp {
|
|
interface ClampOptions {
|
|
clamp?: number|string;
|
|
useNativeClamp?: boolean;
|
|
splitOnChars?: string[];
|
|
animate?: boolean;
|
|
truncationChar?: string;
|
|
truncationHTML?: string | null;
|
|
}
|
|
|
|
interface ClampResponse {
|
|
original: string;
|
|
clamped: string;
|
|
}
|
|
}
|
|
|
|
export = clamp;
|
|
declare function clamp(element: HTMLElement, options?: clamp.ClampOptions): clamp.ClampResponse;
|