generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedevent-handlerThis item relates to the Event Handler UtilityThis item relates to the Event Handler Utility
Description
Summary
We are not exporting the types for the CORS or compress middleware functions.
Why is this needed?
This helps with type safefty and code completion in IDEs.
Which area does this relate to?
Event Handler
Solution
Add this to the typesVesion filed in package.json:
"http/middleware": [
"./lib/cjs/http/middleware/index.d.ts",
"./lib/esm/http/middleware/index.d.ts"
]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
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedevent-handlerThis item relates to the Event Handler UtilityThis item relates to the Event Handler Utility
Type
Projects
Status
Shipped