From c6bb1b32b7029d499ee1563361f1174dba561e2b Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Mon, 24 Jun 2024 12:03:18 +0100 Subject: [PATCH] fix: type hints for lazy imports --- packages/myst-to-react/src/code.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/myst-to-react/src/code.tsx b/packages/myst-to-react/src/code.tsx index 5b5b80ab..4feaea91 100644 --- a/packages/myst-to-react/src/code.tsx +++ b/packages/myst-to-react/src/code.tsx @@ -53,7 +53,7 @@ export function CodeBlock(props: Props) { Promise.all([ import('react-syntax-highlighter/dist/esm/styles/hljs/xcode.js'), import('react-syntax-highlighter/dist/esm/styles/hljs/vs2015.js'), - ]).then(([light, dark]) => { + ]).then(([light, dark]: [Record, Record]) => { setStyle(isLight ? { ...light, hljs: { ...light.hljs, background: 'transparent' } } : dark); }); }, [isLight]);