index.d.ts 458 B

12345678910111213141516
  1. import { ImageCallback } from '@jimp/core';
  2. interface Contain {
  3. contain(w: number, h: number, cb?: ImageCallback<this>): this;
  4. contain(w: number, h: number, mode?: string, cb?: ImageCallback<this>): this;
  5. contain(w: number, h: number, alignBits?: number, cb?: ImageCallback<this>): this;
  6. contain(
  7. w: number,
  8. h: number,
  9. alignBits?: number,
  10. mode?: string,
  11. cb?: ImageCallback<this>
  12. ): this;
  13. }
  14. export default function(): Contain;