diff --git a/packages/devtools-react/src/index.tsx b/packages/devtools-react/src/index.tsx index 6be13cfe..516cbe25 100644 --- a/packages/devtools-react/src/index.tsx +++ b/packages/devtools-react/src/index.tsx @@ -272,7 +272,7 @@ export function JsonRenderDevtools(props: JsonRenderDevtoolsProps) { handleRef.current = panel; // Highlight in the host DOM as the selection changes. - const unsubSelection = selection.subscribe((key) => { + const unsubSelection = selection.subscribe((key: unknown) => { if (key) highlightElement(key); }); diff --git a/packages/devtools-solid/src/index.tsx b/packages/devtools-solid/src/index.tsx index 53a5b9e4..8aec1e64 100644 --- a/packages/devtools-solid/src/index.tsx +++ b/packages/devtools-solid/src/index.tsx @@ -141,7 +141,7 @@ export function JsonRenderDevtools(props: JsonRenderDevtoolsProps) { reserveSpace: props.reserveSpace, allowDockToggle: props.allowDockToggle, }); - unsubSelection = selection.subscribe((key) => { + unsubSelection = selection.subscribe((key: unknown) => { if (key) highlightElement(key); }); releaseActive = markDevtoolsActive();