You've already forked search-query-parser
Default exports
This commit is contained in:
10
index.d.ts
vendored
10
index.d.ts
vendored
@@ -5,7 +5,7 @@
|
||||
// Definitions: https://github.com/nepsilon/search-query-parser
|
||||
|
||||
export module SearchQueryParser {
|
||||
interface SearchParserOptions {
|
||||
export interface SearchParserOptions {
|
||||
offsets?: boolean;
|
||||
tokenize?: boolean;
|
||||
keywords?: string[];
|
||||
@@ -13,22 +13,22 @@ export module SearchQueryParser {
|
||||
alwaysArray?: boolean;
|
||||
}
|
||||
|
||||
interface ISearchParserDictionary {
|
||||
export interface ISearchParserDictionary {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
interface SearchParserOffset {
|
||||
export interface SearchParserOffset {
|
||||
keyword: string;
|
||||
value?: string;
|
||||
offsetStart: number;
|
||||
offsetEnd: number;
|
||||
}
|
||||
|
||||
interface SearchParserResult extends ISearchParserDictionary {
|
||||
export interface SearchParserResult extends ISearchParserDictionary {
|
||||
text?: string | string[];
|
||||
offsets?: SearchParserOffset[];
|
||||
exclude?: ISearchParserDictionary;
|
||||
}
|
||||
|
||||
function parse(string: string, options?: SearchParserOptions): string | SearchParserResult;
|
||||
export function parse(string: string, options?: SearchParserOptions): string | SearchParserResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user