Skip to content

Commit

Permalink
Add static
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Oct 4, 2024
1 parent ea612c3 commit d3595f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ declare module 'nekosia.js' {
* @type Object
* @returns A Promise resolving to an `ImageResponse`.
*/
fetchImages(category: AllTagsList, options?: FetchImagesOptions): Promise<ImageResponse>;
static fetchImages(category: AllTagsList, options?: FetchImagesOptions): Promise<ImageResponse>;

/**
* Fetches images based solely on the tags provided by the user. The main category does not affect the image selection as it is not provided here.
Expand All @@ -340,15 +340,15 @@ declare module 'nekosia.js' {
* @type Object
* @returns A Promise resolving to an `ImageResponse`.
*/
fetchShadowImages(options?: FetchImagesOptions): Promise<ImageResponse>;
static fetchShadowImages(options?: FetchImagesOptions): Promise<ImageResponse>;

/**
* Fetches an image by its identifier.
* @param id - The image identifier (e.g., `66ae26a07886f165901e8a3f`).
* @type Object
* @returns A Promise resolving to an `ImageResponse`.
*/
fetchById(id: string): Promise<ImageResponse>;
static fetchById(id: string): Promise<ImageResponse>;
}

/**
Expand Down

0 comments on commit d3595f4

Please sign in to comment.