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.