Skip to content

Commit eda0566

Browse files
committed
chore(ssr): Minor type fix on $renderStorefront declaration with TS 5.6.3
1 parent 5c1ecca commit eda0566

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ssr/src/lib/serve-storefront.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ import { checkUserAgent, fetchAndCache } from './util/ssr-utils';
1111
import { sendAnalyticsEvents } from './analytics/send-analytics-events';
1212

1313
declare global {
14-
// eslint-disable-next-line
14+
/* eslint-disable no-var, vars-on-top */
15+
// @ts-expect-error: Request/Response mismatch.
1516
var $renderStorefront: (
1617
req: Request,
1718
res: Response,
1819
next: (err: any) => Promise<void>,
1920
) => Promise<any>;
21+
/* eslint-enable no-var, vars-on-top */
2022
}
2123

2224
const { STOREFRONT_BASE_DIR } = process.env;

0 commit comments

Comments
 (0)