Skip to content

Commit

Permalink
export SignleCascaderProps and MultipleCascaderProps (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
babycannotsay authored Dec 12, 2021
1 parent 7deff02 commit 59d87c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ interface BaseCascaderProps
type OnSingleChange = (value: CascaderValueType, selectOptions: DataNode[]) => void;
type OnMultipleChange = (value: CascaderValueType[], selectOptions: DataNode[][]) => void;

interface SingleCascaderProps extends BaseCascaderProps {
export interface SingleCascaderProps extends BaseCascaderProps {
checkable?: false;

onChange?: OnSingleChange;
}

interface MultipleCascaderProps extends BaseCascaderProps {
export interface MultipleCascaderProps extends BaseCascaderProps {
checkable: true | React.ReactNode;

onChange?: OnMultipleChange;
Expand Down

1 comment on commit 59d87c7

@vercel
Copy link

@vercel vercel bot commented on 59d87c7 Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.