mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 21:40:21 +00:00
fix types for lucene (#43164)
change Node.termLocation definition Co-authored-by: Hugo Muller <hmu@reportlinker.com>
This commit is contained in:
co-authored by
Hugo Muller
parent
4bf2352729
commit
6207e4654e
Vendored
+5
-1
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user