diff --git a/types/lucene/index.d.ts b/types/lucene/index.d.ts index 120530f1b2..303beb515b 100644 --- a/types/lucene/index.d.ts +++ b/types/lucene/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for lucene 2.1 // Project: https://github.com/bripkens/lucene#readme // Definitions by: Ben Grynhaus +// Hugo Muller // 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 = '' | 'NOT' | 'OR' | 'AND' | 'AND NOT' | 'OR NOT';