diff --git a/src/client.ts b/src/client.ts index ddf492d7..bb7df99f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -14,6 +14,8 @@ import { getGallery, getSubredditGallery, SubredditGalleryOptions, + searchGallery, + SearchGalleryOptions, } from './gallery'; import { IMGUR_API_PREFIX } from './common/endpoints'; import { @@ -82,6 +84,12 @@ export class ImgurClient extends EventEmitter { return getSubredditGallery(this, options); } + searchGallery( + options: SearchGalleryOptions + ): Promise> { + return searchGallery(this, options); + } + getImage(imageHash: string): Promise> { return getImage(this, imageHash); } diff --git a/src/gallery/index.ts b/src/gallery/index.ts index caa264f4..c40f9c61 100644 --- a/src/gallery/index.ts +++ b/src/gallery/index.ts @@ -1,2 +1,3 @@ export * from './getGallery'; export * from './getSubredditGallery'; +export * from './searchGallery';