Skip to content

Commit

Permalink
🐛 fix: SortableTree return type
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Sep 15, 2023
1 parent 2cbfca6 commit baa94e8
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 baa94e8

Please sign in to comment.