0.11.5 • Published 7 months ago
@types/clamp-js-main v0.11.5
Installation
npm install --save @types/clamp-js-main
Summary
This package contains type definitions for clamp-js-main (https://github.com/jmenglis/clamp-js-main#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clamp-js-main.
index.d.ts
// 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 | undefined;
useNativeClamp?: boolean | undefined;
splitOnChars?: string[] | undefined;
animate?: boolean | undefined;
truncationChar?: string | undefined;
truncationHTML?: string | null | undefined;
}
interface ClampResponse {
original: string;
clamped: string;
}
}
export = clamp;
declare function clamp(element: HTMLElement, options?: clamp.ClampOptions): clamp.ClampResponse;
Additional Details
- Last updated: Thu, 08 Jul 2021 09:07:54 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Sinziana Nicolae.