DefinitelyTyped/types/jquery.highlight-bartaz/index.d.ts
2017-08-20 15:37:53 -07:00

22 lines
567 B
TypeScript

// Type definitions for jquery.highlight.js
// Project: https://github.com/bartaz/sandbox.js/blob/master/jquery.highlight.js
// Definitions by: Stefan Profanter <https://github.com/Pro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
///<reference types="jquery" />
interface JQuery {
unhighlight(options?: {
element?: string,
className?: string
}): JQuery;
highlight(words: string | string[], options?: {
element?: string,
className?: string
caseSensitive?: boolean,
wordsOnly?: boolean
}): JQuery;
}