From 4600fbd73f4d4a8af7d5d6b28e2f1fff8c7fd0e6 Mon Sep 17 00:00:00 2001 From: Abanoub Ghadban Date: Wed, 18 Dec 2024 11:15:33 +0200 Subject: [PATCH] linting --- node_package/src/ReactOnRailsRSC.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node_package/src/ReactOnRailsRSC.ts b/node_package/src/ReactOnRailsRSC.ts index 7a44ed798..79c5da468 100644 --- a/node_package/src/ReactOnRailsRSC.ts +++ b/node_package/src/ReactOnRailsRSC.ts @@ -1,4 +1,3 @@ -import type { ReactElement } from 'react'; // @ts-expect-error will define this module types later import { renderToReadableStream } from 'react-server-dom-webpack/server.edge'; import { PassThrough } from 'stream'; @@ -29,7 +28,7 @@ const stringToStream = (str: string) => { const getBundleConfig = () => { const bundleConfig = JSON.parse(fs.readFileSync('./public/webpack/development/react-client-manifest.json', 'utf8')); // remove file:// from keys - const newBundleConfig: { [key: string]: any } = {}; + const newBundleConfig: { [key: string]: unknown } = {}; for (const [key, value] of Object.entries(bundleConfig)) { newBundleConfig[key.replace('file://', '')] = value; }