# Using the \`@zoom/appssdk\` npm package

**URL:** <https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957>\
**Category:** Zoom Apps\
**Created:** [June 22, 2022, 9:29pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957 "2022-06-22T21:29:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [June 22, 2022, 9:29pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/1 "2022-06-22T21:29:46Z")

</div>

Hi all,

I feel like I might be missing something obvious here, but I’ve gone ahead and installed the new [@zoom/appssdk npm package](https://www.npmjs.com/package/@zoom/appssdk);

```bash
npm i @zoom/appssdk --save

```

but our application gives an error;

```nohighlight
 Can't find variable: zoomSdk

```

I’ve added the following line where ever the sdk is used;

```javascript
/* globals zoomSdk */

```

But our JavaScript app still doesn’t recognize the zoomSdk object. Is there something else I need to do? I looked at the [advanced react app example](https://github.com/zoom/zoomapps-advancedsample-react), and in this case they use the CDN, however I had the same issue when I included it like that - sdk not found. Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [June 22, 2022, 9:51pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/2 "2022-06-22T21:51:06Z")

</div>

Looks like using;

```auto
import zoomSdk from '@zoom/appssdk';

```

resolved it 👀

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [June 22, 2022, 10:04pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/3 "2022-06-22T22:04:56Z")

</div>

Another question:

We are using TypeScript, and previously I created types for the sdk, events, apis etc.

Is there a way to import the TypeScript types from the npm package and use them in our application?

Thanks!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [June 23, 2022, 1:15am UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/4 "2022-06-23T01:15:44Z")

</div>

Great question, @om7! Happy to look into this and circle back with my findings. First, would you be able to share what you’ve already tried and the results of your testing?

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [June 23, 2022, 7:07pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/5 "2022-06-23T19:07:31Z")

</div>

Hey @donte.zoom , I’m wondering:

1. is it possible to import the types declared in the Zoom Apps SDK for use in our TypeScript project?
2. if not, would Zoom consider exporting those types?

In our project, they are all found under: `node_modules/@zoom/appssdk/dist/sdk.d.ts`

Perhaps this is a question Daniel Fried can help with? I can’t seem to find his forum handle

Thanks!

Oliver

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [June 23, 2022, 7:26pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/6 "2022-06-23T19:26:04Z")

</div>

@om7,  
The recommendation is to extract the file found under:`node_modules/@zoom/appssdk/dist/sdk.d.ts` straight from your NPM library (perhaps using jsconfig.json, globals.d.ts). While the types are publicly available, you should know they are subject to change over time as updates to the SDK are released.

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [June 23, 2022, 8:47pm UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/7 "2022-06-23T20:47:34Z")

</div>

Ok, great. Thanks @donte.zoom .

And yes, it is expected that they would change with new versions of the SDK 😄 we want to ensure we’re using the APIs as intended and with the correct types each release!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [June 24, 2022, 12:39am UTC](https://devforum.zoom.us/t/using-the-zoom-appssdk-npm-package/70957/8 "2022-06-24T00:39:19Z")

</div>

@om7 ,

You’re welcome! I’ve reached out to internal resources and it looks like there will be documentation on importing types forthcoming. However, no timeline is set at the moment.
