Skip to content

Commit

Permalink
[algoliasearch] add method addAlgoliaAgent (DefinitelyTyped#37105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored and breeze9527 committed Jan 27, 2020
1 parent b5da5b9 commit d45c706
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/algoliasearch/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions types/algoliasearch/lite/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit d45c706

Please sign in to comment.