OfficeDev / office-js-docs-reference

Microsoft Office JavaScript API Reference
https://learn.microsoft.com/javascript/api/overview
MIT License
105 stars 63 forks source link

Property 'isAllDayEvent' does not exist on type 'AppointmentCompose'.ts(2339) #1945

Closed junaid042 closed 4 weeks ago

junaid042 commented 1 month ago

I tried same code that is in documentation but getting this error

Property 'isAllDayEvent' does not exist on type 'AppointmentCompose'

image

in script Lab

image

AlexJerabek commented 1 month ago

Hi @junaid042,

It looks like isAllDayEvent is in preview for AppointmentCompose. You'll have to switch Script Lab to use the preview type definitions and JS library. The instructions on how to do that can be found here.

Please let me know if that unblocks you. Thanks!

junaid042 commented 4 weeks ago

thanks @AlexJerabek it's worked