# Can not use function endMeeting/leaveMeeting

**URL:** <https://devforum.zoom.us/t/can-not-use-function-endmeeting-leavemeeting/82943>\
**Category:** Web\
**Created:** [February 11, 2023, 3:53pm UTC](https://devforum.zoom.us/t/can-not-use-function-endmeeting-leavemeeting/82943 "2023-02-11T15:53:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 15, 2023, 3:25am UTC](https://devforum.zoom.us/t/can-not-use-function-endmeeting-leavemeeting/82943/6 "2023-02-15T03:25:05Z")

</div>

seems like the accepted strings might be enum, could you change ‘topic22’ to ‘topic’?

> [@MeetingInfoType is undefined with latest WebSdk 1.8.6](https://devforum.zoom.us/t/meetinginfotype-is-undefined-with-latest-websdk-1-8-6/40448/12):
>
> declare enum MeetingInfoType { 'topic' = 'topic', 'host' = 'host', 'mn' = 'mn', 'pwd' = 'pwd', 'telPwd' = 'telPwd', 'invite' = 'invite', 'participant' = 'participant', 'dc' = 'dc', 'enctype' = 'enctype', 'report' = 'report' } can you try modefy MeetingInfoType define and pass typescript type check? [image]

---

_[View the full topic](https://devforum.zoom.us/t/can-not-use-function-endmeeting-leavemeeting/82943)._
