Added mark.js accuracy with limiters definition (#36219)

* Added mark accuracy with limiters definition

* Fixed compilation
This commit is contained in:
Joao Lourenco
2019-06-18 22:02:52 -07:00
committed by Daniel Rosenwasser
parent ebd664074e
commit 85563341a1
+7 -1
View File
@@ -3,6 +3,7 @@
// Definitions by: Soner Köksal <https://github.com/renjfk>
// Roman Hotsiy <https://github.com/RomanGotsiy>
// Lucian Buzzo <https://github.com/LucianBuzzo>
// Joao Lourenco <https://github.com/blackstarzes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -11,12 +12,17 @@
declare namespace Mark {
type MarkAccuracy = 'partially' | 'complementary' | 'exactly';
interface MarkAccuracyObject {
value: MarkAccuracy;
limiters?: string[];
}
interface MarkOptions {
element?: string;
className?: string;
exclude?: string[];
separateWordSearch?: boolean;
accuracy?: MarkAccuracy | { value: MarkAccuracy };
accuracy?: MarkAccuracy | MarkAccuracyObject;
diacritics?: boolean;
synonyms?: { [index: string]: string };
iframes?: boolean;