10.1.5 • Published 6 months ago

@types/express-processimage v10.1.5

Weekly downloads
12
License
MIT
Repository
github
Last release
6 months ago

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.

10.1.4

7 months ago

10.1.5

6 months ago

10.1.3

8 months ago

10.1.2

12 months ago

10.1.1

3 years ago

10.1.0

4 years ago