npm.io
0.0.12 • Published 2 years ago

@types/jquery-truncate-html

Licence
MIT
Version
0.0.12
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.