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

Commit

Permalink
Merge pull request #166 from kaimallea/next-dev
Browse files Browse the repository at this point in the history
Merge next-dev into next
  • Loading branch information
kaimallea authored Apr 11, 2021
2 parents 5832e62 + 051c070 commit 3ef9248
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 3ef9248

Please sign in to comment.