From 59a6a1cd26455dd133d5da7aca1d569694e9ce17 Mon Sep 17 00:00:00 2001 From: Ivan Kabir Date: Wed, 7 Aug 2024 11:14:24 +0300 Subject: [PATCH] fix: remove async from index.d.ts --- index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index a9dd5d8..efb19e7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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; - export async function getDiffArea( + export function getDiffArea( image1: string | Buffer | BoundedImage, image2: string | Buffer | BoundedImage, opts: GetDiffAreaOptions ): Promise; - export async function createDiff(options: CreateDiffOptions): Promise; - export async function createDiff(options: CreateDiffAsBufferOptions): Promise; + export function createDiff(options: CreateDiffOptions): Promise; + export function createDiff(options: CreateDiffAsBufferOptions): Promise; /** * Compare two colors @@ -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>; -async function looksSame( +declare function looksSame( image1: string | Buffer | looksSame.BoundedImage, image2: string | Buffer | looksSame.BoundedImage, options: looksSame.LooksSameOptions & { createDiffImage: true },