Closed simonmellor closed 2 years ago
Hi @simonmellor, thanks for your feedback.
I just release latest version of this package.
The Typescript definition referring to onSuccess
and onFailure
property for each fonction is now updated and detailed hereafter:
This definition allows string
as well as objects with an arn
property refering to AwsCfFunction
. The definition for such type is defined as
allowing various kind of Cloudformation intrinsic functions.
Could you share a code snippet where you're facing a Typescript issue if you still encounter one after updating ?
Thank you @fredericbarthelet the update has resolved the issue I was facing.
In the documentation for functions there is an example of usage for destinations where CloudFront functions are used. This is not possible to achieve using the typescript AWS interface which specifies a string for onSuccess and onFailure.
https://www.serverless.com/framework/docs/providers/aws/guide/functions#destinations