Skip to content

Commit

Permalink
Merge pull request #91 from ant-design/fix/ts-error
Browse files Browse the repository at this point in the history
🐛 fix: SortableTree return type
  • Loading branch information
ONLY-yours authored Sep 15, 2023
2 parents 8dc93a6 + baa94e8 commit bce9d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SortableTree/container/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { memo, ReactNode } from 'react';
import { FC, memo } from 'react';

import { ConfigProvider } from '../../ConfigProvider';
import type { ControlledState } from '../store';
Expand All @@ -23,4 +23,4 @@ export const SortableTree = memo((props) => {
</SortableTreeProvider>
</ConfigProvider>
);
}) as <T>(props: SortableTreeProps<T>) => ReactNode;
}) as <T>(props: SortableTreeProps<T>) => ReturnType<FC>;

0 comments on commit bce9d1b

Please sign in to comment.