Description
The index.d.ts file does not get packed into the @zoomus/websdk package that’s published to NPM. Since the file does actually exist in the repository, I guess this isn’t intentional.
Unfortunately it means that the Web SDK is currently broken in TypeScript projects. The good news is that it’s very easy to fix. In package.json, the files attribute needs to be set to:
"files": ["dist/*", "index.d.ts"]
Error
Could not find a declaration file for module '@zoomus/websdk'.
Which version?
1.8.1
To Reproduce(If applicable)
Steps to reproduce the behavior:
- In your project, run npm i @zoomus/websdk
- Add
import { ZoomMtg } from "@zoomus/websdk";
to a TypeScript file. - Observe the error
Could not find a declaration file for module '@zoomus/websdk'.