Type Alias BackgroundTaskRouter
BackgroundTaskRouter: (
request: Request,
tenantId: string,
) => Promise<Response | null>
Type Declaration
- (request: Request, tenantId: string): Promise<Response | null>
Parameters
- request: Request
- tenantId: string
Returns Promise<Response | null>
A router
(request, tenantId) => Response | null.nullmeans the path is not one of ours (the DO falls through).tenantIdis the DO's own asserted tenant — never read from the request.