We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2568fa commit 30c76b0Copy full SHA for 30c76b0
index.d.ts
@@ -16,13 +16,21 @@ export interface ISearchParserDictionary {
16
[key: string]: any;
17
}
18
19
-export interface SearchParserOffset {
20
- keyword: string;
21
- value?: string;
+export type SearchParserOffset = (SearchParserKeyWordOffset | SearchParserTextOffset) & {
22
offsetStart: number;
23
offsetEnd: number;
24
25
+export type SearchParserKeyWordOffset = {
+ keyword: string;
26
+ value?: string;
27
+
28
+}
29
30
+export type SearchParserTextOffset = {
31
+ text: string;
32
33
34
export interface SearchParserResult extends ISearchParserDictionary {
35
text?: string | string[];
36
offsets?: SearchParserOffset[];
0 commit comments