Reputation: 5834
Similar to the issue I recently posted here, it seems there are two other omissions (perhaps more):
Is there a way I can force the usage of these missing types in my React/TypeScript project (using Webstorm)? I'm geting compiler errors and can't use them at all.
Upvotes: 2
Views: 114
Reputation: 522
Looking at the current d.ts file in Definitely Typed, it appears both those parameters are listed and described.
Have you updated @types/office-js recently? Several changes, particularly to Outlook, have been checked in recently.
Upvotes: 3
Reputation: 8670
You can always cast something to any
. I.e.:
(Office.context.mailbox as any).restUrl
I'll let the Outlook Extensibility team know that these two are missing -- but also, if you know exactly what is missing, feel free to just submit a pull request on this file.
Upvotes: 1