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]);