I'm new with Typescript user, and I'm trying to use react-pageflip with my typescript project. First, I tried to import HTMLFlipbook for use it. but it needs type. Here's my code.
type mybook = {
children: Element[];
width: number;
height: number;
}
export default function Mybook(Mybook:mybook) {
return (
<HTMLFlipBook width={300} height={500}>
<div className="demoPage">Page 1</div>
<div className="demoPage">Page 2</div>
<div className="demoPage">Page 3</div>
<div className="demoPage">Page 4</div>
</HTMLFlipBook>
);
}