Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
fix(searchgallery): make searchGallery method accessible from client
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimallea committed Apr 11, 2021
1 parent 5832e62 commit 08dd33f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
getGallery,
getSubredditGallery,
SubredditGalleryOptions,
searchGallery,
SearchGalleryOptions,
} from './gallery';
import { IMGUR_API_PREFIX } from './common/endpoints';
import {
Expand Down Expand Up @@ -82,6 +84,12 @@ export class ImgurClient extends EventEmitter {
return getSubredditGallery(this, options);
}

searchGallery(
options: SearchGalleryOptions
): Promise<ImgurApiResponse<GalleryData>> {
return searchGallery(this, options);
}

getImage(imageHash: string): Promise<ImgurApiResponse<ImageData>> {
return getImage(this, imageHash);
}
Expand Down
1 change: 1 addition & 0 deletions src/gallery/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './getGallery';
export * from './getSubredditGallery';
export * from './searchGallery';

0 comments on commit 08dd33f

Please sign in to comment.