[algoliasearch] add method addAlgoliaAgent (#37105)

source: 5c1ce13087/src/AlgoliaSearchCore.js (L173)
This commit is contained in:
Haroen Viaene 2019-07-24 21:37:30 +02:00 committed by Wesley Wigham
parent 2ccc2ff364
commit 70ba0dd2b4
2 changed files with 8 additions and 0 deletions

View File

@ -211,6 +211,10 @@ declare namespace algoliasearch {
* Get 1000 last events
*/
getLogs(options: LogsOptions): Promise<{ logs: Log[] }>;
/**
* add a header, used for flagging InstantSearch implementations
*/
addAlgoliaAgent(agent: string): void;
}
/**
* Interface for the index algolia object

View File

@ -76,6 +76,10 @@ declare namespace algoliasearch {
* remove an extra header for all upcoming requests
*/
unsetExtraHeader(name: string): void;
/**
* add a header, used for flagging InstantSearch implementations
*/
addAlgoliaAgent(agent: string): void;
}
/**