ews-javascript-api
ews-javascript-api copied to clipboard
Missing typescript declaration for CreateItem
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
while in typescript declaration there is only CreateItems
And I believe CreateItems should return Promise<ServiceResponseCollection< CreateItemResponse>> rather than Promise<ServiceResponseCollection<ServiceResponse>>
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.