ews-javascript-api icon indicating copy to clipboard operation
ews-javascript-api copied to clipboard

Missing typescript declaration for CreateItem

Open bladerunner2020 opened this issue 2 years ago • 1 comments
trafficstars

Got this error in typescript:

Property 'CreateItem' does not exist on type 'ExchangeService'. Did you mean 'CreateItems'?ts(2551)
ExchangeWebService.d.ts(4302, 5): 'CreateItems' is declared here.

In JS there are both CreateItem and CreateItems image

while in typescript declaration there is only CreateItems image

bladerunner2020 avatar Aug 25 '23 07:08 bladerunner2020

And I believe CreateItems should return Promise<ServiceResponseCollection< CreateItemResponse>> rather than Promise<ServiceResponseCollection<ServiceResponse>>

bladerunner2020 avatar Aug 25 '23 07:08 bladerunner2020

CreateItem is marked internal in c# hence it is excluded from the typings. This return type is also based on the c# return type, Although it does not matter as the declaration is missing anyways.

gautamsi avatar Feb 25 '24 06:02 gautamsi