videojs / videojs-contrib-eme

Supports Encrypted Media Extensions for playback of encrypted content in Video.js
Other
203 stars 72 forks source link

how to use in typescript? #160

Open ocipap opened 2 years ago

ocipap commented 2 years ago

I want use this library in typescript.

but errors occur

TS7016: Could not find a declaration file for module 'videojs-contrib-eme'. '/Users/username/workspaces/project/node_modules/videojs-contrib-eme/dist/videojs-contrib-eme.cjs.js' implicitly has an 'any' type.   Try `npm i --save-dev @types/videojs-contrib-eme` if it exists or add a new declaration (.d.ts) file containing `declare module 'videojs-contrib-eme';`

@types/videojs-contrib-eme is not exist...