andypotato / fingerpose

TFJS based finger pose classifier for hand landmarks detected by the MediaPipe Handpose model
MIT License
464 stars 112 forks source link

Added types in `dist` #19

Closed princejoogie closed 2 years ago

princejoogie commented 2 years ago

Here is generated types from tsc command, not everything has types yet but is enough to be very usable with typescript. ill complete the types soon

Steps done

  1. create a tsconfig.json file with this content

    {
    "include": [
    "src/**/*"
    ],
    "compilerOptions": {
    "allowJs": true,
    "declaration": true,
    "emitDeclarationOnly": true,
    "outDir": "dist"
    }
    }
  2. run npx tsc in root dir

  3. change types of obvious params like name which should be string

princejoogie commented 2 years ago

ran into some issue. will reopen once a fix is done

EthanL06 commented 10 months ago

I added type declarations!

here