Installation
npm install --save @types/svg2png
Summary
This package contains type definitions for svg2png (https://github.com/domenic/svg2png).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg2png.
index.d.ts
/// <reference types="node" />
interface opts {
fileName?: string | undefined;
width?: number | undefined;
height?: number | undefined;
url?: string | undefined;
}
declare function svg2png(sourceBuffer: Buffer, opts?: opts): Promise<Buffer>;
declare namespace svg2png {
function sync(sourceBuffer: Buffer, opts?: opts): Buffer;
}
export = svg2png;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by hans windhoff.