From 23393cf5cdcd9c30897ebbbb7e38835e21b67787 Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Fri, 7 Jan 2022 23:47:21 +0000 Subject: [PATCH] Update packages/wrangler/pages/functions/template-worker.ts Co-authored-by: Sunil Pai --- packages/wrangler/pages/functions/template-worker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/wrangler/pages/functions/template-worker.ts b/packages/wrangler/pages/functions/template-worker.ts index f0b4c6de5a2a..60e46e473302 100644 --- a/packages/wrangler/pages/functions/template-worker.ts +++ b/packages/wrangler/pages/functions/template-worker.ts @@ -90,8 +90,7 @@ function* executeRequest(request: Request, env: Env) { // Finally, yield to the fallback service (`env.ASSETS.fetch` in Pages' case) return { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore + // @ts-expect-error we don't define a type for the special global __FALLBACK_SERVICE_FETCH__ since we replace it when we're building anyway handler: () => __FALLBACK_SERVICE_FETCH__(request.url, request), params: {} as Params, };