DEV Community

Discussion on: First Look at Lambda Powertools TypeScript

Collapse
 
ijemmy profile image
ijemmy

Hi Matt,
I work on this project. Thanks a lot for reviewing the tool :) This is very valuable for us. We have been pushing ourselves to publish beta version to get a feedback like this so we could reiterate on the right path.

Totally agree on the point that decorator doesn't work on functions. Making functions into a class just to use the decorator feature really bugs me. This led to Middy support as an alternative. We (maintainers) are also concerned if it's commonly used enough. So we ended up supporting all 3 options.

Collapse
 
elthrasher profile image
Matt Morgan

Hey ijemmy, thanks for reading! I think you all made the right choice in supporting all three methods. I've been a middy user for years and I like what it provides, but have always disliked the API (while understanding why they made it that way). I'll probably stick with decorators and see how that goes, but you'll need the other methods anyway to support users who don't want to use transpilers.

Anyway, enjoy the positive feedback! Your team did a great job on this in spite of limitations in the language!