Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove async from index.d.ts #107

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading