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

4.1.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/svg2png

Weekly Downloads

269

Version

4.1.5

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • types