Skip to content

Support satisfies ExportedHandler and export default #332

Open
@radu-matei

Description

@radu-matei

It would be nice to be able to run the following snippet:

export default {
  async fetch(request) {
    return new Response(...);
  },
} satisfies ExportedHandler;

I don't think we should make it default (pun intended), but supporting it would be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions