@types/lunr
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -538,2 +538,20 @@ // Type definitions for lunr.js 2.3 | ||
namespace Query { | ||
/** | ||
* Constants for indicating what kind of presence a term must have in matching documents. | ||
*/ | ||
enum presence { | ||
/** | ||
* Term's presence in a document is optional, this is the default value. | ||
*/ | ||
OPTIONAL = 1, | ||
/** | ||
* Term's presence in a document is required, documents that do not contain this term will not be returned. | ||
*/ | ||
REQUIRED = 2, | ||
/** | ||
* Term's presence in a document is prohibited, documents that do contain this term will not be returned. | ||
*/ | ||
PROHIBITED = 3 | ||
} | ||
enum wildcard { | ||
@@ -602,2 +620,8 @@ NONE = 0, | ||
* | ||
* The term is used as is, i.e. no tokenization will be performed by this method. Instead conversion | ||
* to a token or token-like string should be done before calling this method. | ||
* | ||
* The term will be converted to a string by calling `toString`. Multiple terms can be passed as an | ||
* array, each term in the array will share the same options. | ||
* | ||
* @param term - The term to add to the query. | ||
@@ -616,3 +640,3 @@ * @param [options] - Any additional properties to add to the query clause. | ||
*/ | ||
term(term: string, options: object): Query; | ||
term(term: string | string[] | Token | Token[], options: object): Query; | ||
} | ||
@@ -619,0 +643,0 @@ |
{ | ||
"name": "@types/lunr", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "TypeScript definitions for lunr.js", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "077cc36a84a59c9a042c50635622acc07520993520ec592f8c6271fa09a17fd3", | ||
"typesPublisherContentHash": "312bf045f3b230fc6769ea087ee2a7ac06a4f6f6c6c123f7595cd4a18aab49b7", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Sat, 08 Dec 2018 01:45:01 GMT | ||
* Last updated: Tue, 22 Jan 2019 17:44:52 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: lunr |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40876
918