@types/express-processimage
TypeScript icon, indicating that this package has built-in type declarations

10.1.5 • Public • Published

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

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;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/express-processimage

Weekly Downloads

1

Version

10.1.5

License

MIT

Unpacked Size

4.91 kB

Total Files

5

Last publish

Collaborators

  • types