From 85563341a1a0f1fd080af3b937a2caf3fe263fa1 Mon Sep 17 00:00:00 2001 From: Joao Lourenco Date: Wed, 19 Jun 2019 15:02:52 +1000 Subject: [PATCH] Added mark.js accuracy with limiters definition (#36219) * Added mark accuracy with limiters definition * Fixed compilation --- types/mark.js/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/mark.js/index.d.ts b/types/mark.js/index.d.ts index 8b214c3e15..d4c23cb40f 100644 --- a/types/mark.js/index.d.ts +++ b/types/mark.js/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Soner Köksal // Roman Hotsiy // Lucian Buzzo +// Joao Lourenco // 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;