File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/webviews/webview-side/vega-renderer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ import { produce } from 'immer';
66
77import { numberFormats } from './number-formats' ;
88import { detectBaseTheme } from '../react-common/themeDetector' ;
9+ import { TopLevelSpec } from 'vega-lite' ;
910
1011export interface VegaRendererProps {
11- spec : Record < string , unknown > ;
12+ spec : TopLevelSpec ;
1213 renderer ?: 'svg' | 'canvas' ;
1314}
1415
@@ -70,7 +71,7 @@ export const VegaRenderer = memo(function VegaRenderer(props: VegaRendererProps)
7071
7172 const { backgroundColor, foregroundColor, isDark } = useThemeColors ( ) ;
7273 const themedSpec = useMemo ( ( ) => {
73- const patchedSpec = produce ( spec , ( draft : any ) => {
74+ const patchedSpec = produce ( spec , ( draft ) => {
7475 draft . background = backgroundColor ;
7576
7677 if ( ! draft . config ) {
You can’t perform that action at this time.
0 commit comments