Skip to content

Commit

Permalink
Fixed build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jan 26, 2025
1 parent f78cdae commit 68e5725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/magick-image-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export class MagickImageCollection extends Array<MagickImage> implements IMagick
combine<TReturnType>(colorSpace: ColorSpace, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>
combine<TReturnType>(colorSpaceOrfunc: ColorSpace | (ImageCallback<TReturnType>), func?: (images: IMagickImage) => TReturnType | Promise<TReturnType>): TReturnType | Promise<TReturnType> {
let callback = func;
let colorSpace = ColorSpace.sRGB;
let colorSpace: ColorSpace = ColorSpace.sRGB;
if (typeof colorSpaceOrfunc === 'number')
colorSpace = colorSpaceOrfunc;
else
Expand Down Expand Up @@ -656,7 +656,7 @@ export class MagickImageCollection extends Array<MagickImage> implements IMagick

smushVertical<TReturnType>(offset: number, func: SyncImageCallback<TReturnType>): TReturnType;
smushVertical<TReturnType>(offset: number, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
smushVertical<TReturnType>(offset: number, func: ImageCallback<TReturnType>): Promise<TReturnType> | TReturnType{
smushVertical<TReturnType>(offset: number, func: ImageCallback<TReturnType>): Promise<TReturnType> | TReturnType {
return this.smush(offset, true, func);
}

Expand Down

0 comments on commit 68e5725

Please sign in to comment.