index.d.ts 449 B

123456789
  1. import { Image, Omit } from '@jimp/core';
  2. import { ThrowStatement } from 'typescript';
  3. export function isNodePattern(cb: Function): true;
  4. export function isNodePattern(cb: Omit<any, Function>): false;
  5. export function throwError(error: string | Error, cb?: (err: Error) => void): ThrowStatement;
  6. export function scan(image: Image, x: number, y: number, w: number, h: number, f: (image: Image, _x: number, _y: number, idx: number) => void): Image;