UNPKG
react-html-to-image
Version:
latest (1.0.0)
1.0.0
TODO
github.com/Kieran-McIntyre/react-html-to-image
Kieran-McIntyre/react-html-to-image
react-html-to-image
/
dist
/
useHtmlToImage.d.ts
9 lines
(8 loc)
•
280 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/// <reference types="react" />
export
type
HtmlToImageOptions
= {
quality
?:
number
; };
export
declare
const
useHtmlToImage
:
() =>
{
ref
:
import
(
"react"
).
RefObject
<
HTMLDivElement
>;
saveHtmlAsImage
:
(
fileName
:
string
,
options
?:
HtmlToImageOptions
) =>
Promise
<
void
>; };