diff --git a/src/components/Bullet/Bullet.tsx b/src/components/Bullet/Bullet.tsx index 0a1f3fc..bf53a8e 100644 --- a/src/components/Bullet/Bullet.tsx +++ b/src/components/Bullet/Bullet.tsx @@ -11,7 +11,7 @@ import { useChartTheme } from '##/hooks/useChartTheme'; import { getChart } from '##/utils/getChart'; import { ChartProps } from '##/utils/types/ChartProps'; -export type BulletProps = ChartProps>; +export type BulletProps = ChartProps; type Bullet = (props: BulletProps) => React.ReactElement | null; @@ -27,7 +27,7 @@ export const Bullet: Bullet = React.forwardRef((props, ref) => { const theme = useChartTheme(); const { chart, container } = useChart(G2plotBullet, { - ...rest, + ...(rest as Omit), color: rest.color as unknown as ColorAttr, theme, });