10.1.5 • Published 6 months ago
@types/express-processimage v10.1.5
Installation
npm install --save @types/express-processimage
Summary
This package contains type definitions for express-processimage (https://github.com/papandreou/express-processimage#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-processimage.
index.d.ts
// 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;
/** @debug 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;
/** @defult false */
secondGuessSourceContentType?: boolean | undefined;
}
}
export = processImage;
Additional Details
- Last updated: Thu, 08 Jul 2021 12:01:21 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Piotr Błażejewicz.