Skip to content

Commit c650803

Browse files
author
xuying.xu
committed
fix: ts修复
1 parent f42624c commit c650803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/f2/src/components/guide/withGuide.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { jsx, Component, ComponentType } from '@antv/f-engine';
1+
import { jsx, Component, ComponentType, ClassComponent } from '@antv/f-engine';
22
import { isString, isNil, isFunction } from '@antv/util';
33
import Chart, { ChartChildProps, Point } from '../../chart';
44
import { computeLayout, AnimationProps } from '@antv/f-engine';
@@ -13,7 +13,7 @@ export interface GuideProps {
1313

1414
export default function<IProps extends GuideProps = GuideProps>(
1515
View: ComponentType<IProps & ChartChildProps>
16-
): ComponentType<IProps & ChartChildProps> {
16+
): ClassComponent<IProps & ChartChildProps> {
1717
return class Guide extends Component<IProps & ChartChildProps> {
1818
chart: Chart;
1919

0 commit comments

Comments
 (0)