amazon-connect / amazon-connect-streams

Amazon Connect Streams - a browser-based contact center integration API, typically with CRM systems.
https://docs.aws.amazon.com/connect/latest/userguide/
Apache License 2.0
394 stars 315 forks source link

Promise return types #926

Closed mfulton26 closed 2 months ago

mfulton26 commented 2 months ago

From what I can tell, all of the functions that receive callbacks of type SuccessFailOptions are all void returning functions. I'd much rather have these functions return Promises (especially if not callbacks are passed in). Can this be supported?

https://github.com/amazon-connect/amazon-connect-streams/blob/b8f213e6cde76cd1d57da07fec1b7f6804ca05be/src/index.d.ts#L953

tannera926 commented 2 months ago

This can't be supported currently. If you would like to submit a feature request, you can submit one to AWS support here.