Skip to content

Commit

Permalink
chore: update type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Sep 13, 2022
1 parent 4648e95 commit bc33bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings/core/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export function getTopNews(language?: string, region?: string): Promise<{
}>;
/**
* Search a given query on Google.
* @param {string} query - search query
* @param {string | object} query - search query
* @param {object} [options] search options
* @param {boolean} [options.ris] - use reverse image search
* @param {boolean} [options.safe] - safe search
* @param {number} [options.page] - pagination
* @param {object} [options.additional_params] - parameters that will be passed to Google
*/
export function search(query: string, options?: {
export function search(query: string | object, options?: {
ris?: boolean;
safe?: boolean;
page?: number;
Expand Down

0 comments on commit bc33bb5

Please sign in to comment.