Installation
npm install --save @types/jquery-truncate-html
Summary
This package contains type definitions for jquery-truncate-html (https://github.com/kbwood/timeentry).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-truncate-html.
index.d.ts
/// <reference types="jquery"/>
interface TruncateOptions {
length?: number | undefined;
stripTags?: boolean | undefined;
words?: boolean | undefined;
noBreaks?: boolean | undefined;
ellipsis?: string | undefined;
}
interface JQuery {
truncate(options: TruncateOptions): JQuery;
}
interface JQueryStatic {
truncate(html: string, options: TruncateOptions): string;
}
Additional Details
- Last updated: Tue, 30 Jan 2024 2145 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Abraão Alves.