0.0.12 • Published 3 months ago
@types/jquery-truncate-html v0.0.12
Installation
npm install --save @types/jquery-truncate-html
Summary
This package contains type definitions for jQuery-truncate-html.js (https://github.com/kbwood/timeentry).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-truncate-html.
index.d.ts
// Type definitions for jQuery-truncate-html.js
// Project: https://github.com/kbwood/timeentry
// Definitions by: Abraão Alves <https://github.com/abraaoalves>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <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: Fri, 09 Jul 2021 02:32:29 GMT
- Dependencies: @types/jquery
- Global values: none
Credits
These definitions were written by Abraão Alves.