@whi/cf-routing - v0.2.0
    Preparing search index...

    Type Alias Middleware<P>

    Middleware: (request: Request, env: any, params: P) => Promise<void> | void

    Middleware function type for WorkerRouter

    Type Parameters

    Type Declaration

      • (request: Request, env: any, params: P): Promise<void> | void
      • Parameters

        • request: Request
        • env: any
        • params: P

        Returns Promise<void> | void