Skip to content

Commit 7570dc0

Browse files
authored
fix(types): explicit return type from web middleware() (#1119)
1 parent 4a2d81a commit 7570dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/web/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function middleware(
1111
webhooks: Webhooks,
1212
options: Required<MiddlewareOptions>,
1313
request: Request,
14-
) {
14+
): Promise<Response> {
1515
let pathname: string;
1616
try {
1717
pathname = new URL(request.url as string, "http://localhost").pathname;

0 commit comments

Comments
 (0)