Skip to content

Commit

Permalink
fix: remove async from index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kabir-Ivan committed Aug 7, 2024
1 parent fa48a9c commit 59a6a1c
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 59a6a1c

Please sign in to comment.