Closed
Description
Summary
In 2.7.0 we introduced a new helper in the Parser utility, which helps customers to extend built-in Zod schemas that have a stringified body.
The helper, while working at runtime, currently sets the return type of the parsed object to any
, which defeats the purpose of the DX improvement that the helper was supposed to bring.
We should
Why is this needed?
So that customers using the helper can have the correct type on the parsed field.
Which area does this relate to?
Parser
Solution
Follow Zod best practices around writing generic functions.
Acknowledgment
- This request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped