PSPDFKit in Typescript in React JS

I’m using this library to draw rectangle on PDF and created POC successfully but now I want to integrate it in my real time project which is in React JS and Typescript
https://pspdfkit.com/getting-started/web/?frontend=vanillajs&download=npm&integration=module

and I’m getting this error while integrating

enter image description here

enter image description here

so my question is it available for typescript or not because as per my search I didn’t find typescript version anymore? Please any help is appreciated.