victordibia / handtrack.js

A library for prototyping realtime hand detection (bounding box), directly in the browser.
https://victordibia.com/handtrack.js/
MIT License
2.83k stars 250 forks source link

Add Typescript definitions #70

Open ModischFabrications opened 2 years ago

ModischFabrications commented 2 years ago

Seems like type definitions are missing, which makes integration with a typescript (svelte) project cumbersome:

Hint: Could not find a declaration file for module 'handtrackjs'. '/handtrackjs/src/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/handtrackjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'handtrackjs';` (ts)
MJKingsbury commented 1 year ago

Have the developers made any progress on this? I am encountering the same issue while developing a React application.