Skip to content

Maintenance: Export Middelware Types From Event Handler #4806

@svozza

Description

@svozza

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

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/shippedevent-handlerThis item relates to the Event Handler Utility

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions