There were several discussions in the community about using typescript definitions with our JavaScript API. We have just updated our Samples repo to include the type definition file.
Check it out in more details here!
Tagging people who have asked about it previously in the community:
@pedroDimas
@jojojo