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

1.0.4 • Public • Published

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

/// <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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Noam Alffasy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/image-thumbnail

Weekly Downloads

1,574

Version

1.0.4

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • types