15 lines
255 B
TypeScript
15 lines
255 B
TypeScript
import { ImageCallback } from "@jimp/core";
|
|
|
|
interface Threshold {
|
|
threshold(
|
|
opts: {
|
|
max: number;
|
|
replace?: number;
|
|
autoGreyscale?: boolean;
|
|
},
|
|
cb?: ImageCallback<this>
|
|
): this;
|
|
}
|
|
|
|
export default function (): Threshold;
|