1.0.4 • Published 6 months ago

@types/image-thumbnail v1.0.4

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

Installation

npm install --save @types/image-thumbnail

Summary

This package contains type definitions for image-thumbnail (https://github.com/onildoaguiar/image-thumbnail#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/image-thumbnail.

index.d.ts

// Type definitions for image-thumbnail 1.0
// Project: https://github.com/onildoaguiar/image-thumbnail#readme
// Definitions by: Noam Alffasy <https://github.com/noamalffasy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import { ReadStream } from 'fs';

export = imageFunction;

declare function imageFunction(
    src: { uri: string } | string | Buffer | ReadStream,
    options?: { responseType: 'buffer' } & imageFunction.Options,
): Promise<Buffer>;
declare function imageFunction(
    src: { uri: string } | string | Buffer | ReadStream,
    options?: { responseType: 'base64' } & imageFunction.Options,
): Promise<string>;

declare namespace imageFunction {
    interface Options {
        percentage?: number | undefined;
        width?: number | undefined;
        height?: number | undefined;
        responseType?: string | undefined;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:23:08 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Noam Alffasy.

1.0.2

8 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

5 years ago