mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* 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
33 lines
1.3 KiB
TypeScript
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;
|