Skip to content

Commit

Permalink
Merge pull request #107 from gemini-testing/remove-async-from-d.ts
Browse files Browse the repository at this point in the history
fix: remove async from index.d.ts
  • Loading branch information
Kabir-Ivan authored Aug 7, 2024
2 parents fa48a9c + 59a6a1c commit 2e8d23d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,18 +262,18 @@ declare module looksSame {
B: number;
}

export async function getDiffArea(
export function getDiffArea(
image1: string | Buffer | BoundedImage,
image2: string | Buffer | BoundedImage
): Promise<CoordBounds | null>;
export async function getDiffArea(
export function getDiffArea(
image1: string | Buffer | BoundedImage,
image2: string | Buffer | BoundedImage,
opts: GetDiffAreaOptions
): Promise<CoordBounds | null>;

export async function createDiff(options: CreateDiffOptions): Promise<null>;
export async function createDiff(options: CreateDiffAsBufferOptions): Promise<Buffer>;
export function createDiff(options: CreateDiffOptions): Promise<null>;
export function createDiff(options: CreateDiffAsBufferOptions): Promise<Buffer>;

/**
* Compare two colors
Expand All @@ -291,13 +291,13 @@ declare module looksSame {
* @param image2 The second image
* @param options The options passed to looksSame function
*/
async function looksSame(
declare function looksSame(
image1: string | Buffer | looksSame.BoundedImage,
image2: string | Buffer | looksSame.BoundedImage,
options?: looksSame.LooksSameOptions & { createDiffImage?: false },
): Promise<looksSame.LooksSameResult<false>>;

async function looksSame(
declare function looksSame(
image1: string | Buffer | looksSame.BoundedImage,
image2: string | Buffer | looksSame.BoundedImage,
options: looksSame.LooksSameOptions & { createDiffImage: true },
Expand Down

0 comments on commit 2e8d23d

Please sign in to comment.