Skip to content

Commit

Permalink
fix: type hints for lazy imports
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jun 24, 2024
1 parent 0fc2dc5 commit c6bb1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/myst-to-react/src/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>, Record<string, any>]) => {
setStyle(isLight ? { ...light, hljs: { ...light.hljs, background: 'transparent' } } : dark);
});
}, [isLight]);
Expand Down

0 comments on commit c6bb1b3

Please sign in to comment.