-
I saw that the |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Aug 12, 2024
Replies: 1 comment 5 replies
-
This is possible with the underlying API but I have not exposed this yet in the typescript api. I can add this for you but I could use your help with how we should name this new method and it's signature. // This is the current method and we should keep this.
compare(image: IMagickImage, metric: ErrorMetric): number;
// And add an extra overload
compareSomething(image: IMagickImage, metric: ErrorMetric, func: (something: ISomething) => TReturnType): TReturnType;
interface ISomething
{
distortion: number;
something: IMagickImage;
} Can you help me with names for the somethings? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just published a new release that includes the changes that I made. Thanks for helping out.