mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
* Use index.d.ts only (not foo/foo.d.ts) * Convert more packages * Remove unnecessary references
23 lines
563 B
TypeScript
23 lines
563 B
TypeScript
// 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/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference types="jquery"/>
|
|
|
|
interface TruncateOptions{
|
|
length?: number;
|
|
stripTags?: boolean;
|
|
words?: boolean;
|
|
noBreaks?: boolean;
|
|
ellipsis?: string;
|
|
}
|
|
|
|
interface JQuery{
|
|
truncate(options: TruncateOptions) : JQuery;
|
|
}
|
|
|
|
interface JQueryStatic {
|
|
truncate(html: string, options: TruncateOptions) : string;
|
|
}
|