@types/algoliasearch
Advanced tools
Comparing version 3.27.8 to 3.30.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for algoliasearch-client-js 3.27.0 | ||
// Type definitions for algoliasearch-client-js 3.30.0 | ||
// Project: https://github.com/algolia/algoliasearch-client-js | ||
@@ -9,4 +9,6 @@ // Definitions by: Baptiste Coquelle <https://github.com/cbaptiste> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
// TypeScript Version: 2.8 | ||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> | ||
declare namespace algoliasearch { | ||
@@ -138,2 +140,7 @@ /** | ||
*/ | ||
browse(query: string, parameters: BrowseParameters, cb: (err: Error, res: BrowseResponse) => void): void; | ||
/** | ||
* Browse an index | ||
* https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse | ||
*/ | ||
browse(query: string, cb: (err: Error, res: BrowseResponse) => void): void; | ||
@@ -144,3 +151,3 @@ /** | ||
*/ | ||
browse(query: string): Promise<BrowseResponse>; | ||
browse(query: string, parameters?: BrowseParameters): Promise<BrowseResponse>; | ||
/** | ||
@@ -200,3 +207,11 @@ * Browse an index from a cursor | ||
} | ||
type BrowseParameters = Omit< | ||
QueryParameters, | ||
| "typoTolerance" | ||
| "distinct" | ||
| "facets" | ||
| "getRankingInfo" | ||
| "attributesToHighlight" | ||
| "attributesToSnippet" | ||
> | ||
interface QueryParameters { | ||
@@ -203,0 +218,0 @@ /** |
{ | ||
"name": "@types/algoliasearch", | ||
"version": "3.27.8", | ||
"version": "3.30.0", | ||
"description": "TypeScript definitions for algoliasearch-client-js", | ||
@@ -29,2 +29,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "", | ||
"repository": { | ||
@@ -36,4 +37,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "86b8169cce2cc58c97b888efd8c562e29185dd4942fca7f2dec5943d90f59725", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "8ebd9070d159ed8a2c2fa6f77ea8a9cb2eca369befdd429ee344b3c1cf6d7dee", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 28 Sep 2018 21:44:24 GMT | ||
* Last updated: Sat, 27 Oct 2018 01:36:31 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
90229
2423