TypeScript and Html2Canvas?
Asked Answered
H

1

6

Does anyone know if there a TypeScript definition file (d.ts) available for the Html2Canvas library?

Html2Canvas is a great library for taking screenshots of a browser using JavaScript. See https://github.com/niklasvh/html2canvas for more details.

Honora answered 18/12, 2013 at 17:49 Comment(1)
npm install --save @types/html2canvasKirwin
F
0

Since version 1.0.0-rc.2, types were added to html2canvas package in npm. So if you install it using

npm i [email protected]

or install the higher versions, you can use html2canvas with typescript.

Flashbulb answered 22/12, 2022 at 19:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.