Specification for the Fetchable module interface forked from philippeserhal.com/fetchable
438 B · 16 lines
Markdown
at main

Fetchable #

A standard type interface for request entry-point ES modules.

Platforms, runtimes, frameworks, and other tools may implement or accept this interface in order to interoperate with one another.

interface Fetchable {
  default: {
    fetch(request: Request, ...extra: unknown[]): Promise<Response> | Response;
  };
}

See the spec at fetchable.org for the full definition and more details.