Files
Josh Goldberg ✨ 3fcc20acbe 🤖 Merge PR #65445 chore: fixed remaining jsdoc/check-tag-names complaints by @JoshuaKGoldberg
* chore: fixed remaining jsdoc/check-tag-names complaints

* Fix up an assortment of more issues

* Reset .eslintrc.json back to master

* Fix next-pwa again, and revert yeoman-test

* Revert openfin
2023-05-25 13:21:57 -07:00

33 lines
1.3 KiB
TypeScript

// Type definitions for express-processimage 10.1
// Project: https://github.com/papandreou/express-processimage#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { NextFunction } from 'express';
/**
* Middleware that processes images according to the query string.
* It is intended to be used in a development setting with the static middleware,
* but should play well with any middleware further down the stack,even an http proxy, via hijackresponse.
*/
declare function processImage(options?: processImage.Options): NextFunction;
declare namespace processImage {
interface Options {
allowedImageSourceContentTypes?: string[] | undefined;
allowOperation?: ((operationName: string, ...args: any[]) => boolean) | undefined;
/** @default false */
debug?: boolean | undefined;
filters?: Record<string, boolean> | undefined;
maxInputPixels?: number | undefined;
maxOutputPixels?: number | undefined;
onPipeline?: ((pipeline: object) => void) | undefined;
root?: string | undefined;
sharpCache?: number | undefined;
/** @default false */
secondGuessSourceContentType?: boolean | undefined;
}
}
export = processImage;