fix types for lucene (#43164)

change Node.termLocation definition

Co-authored-by: Hugo Muller <hmu@reportlinker.com>
This commit is contained in:
Hugo Muller
2020-03-18 16:20:16 -04:00
committed by GitHub
co-authored by Hugo Muller
parent 4bf2352729
commit 6207e4654e
+5 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for lucene 2.1
// Project: https://github.com/bripkens/lucene#readme
// Definitions by: Ben Grynhaus <https://github.com/bengry>
// Hugo Muller <https://github.com/HugoMuller>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface TermLocation {
@@ -18,7 +19,10 @@ export interface Node {
regex: boolean;
similarity: null;
term: string;
termLocation: TermLocation;
termLocation: {
start: TermLocation;
end: TermLocation;
};
}
export type Operator = '<implicit>' | 'NOT' | 'OR' | 'AND' | 'AND NOT' | 'OR NOT';