chore: improve select ref type (#27594)

This commit is contained in:
Tom Xu 2020-11-06 09:52:42 +08:00 committed by GitHub
parent 18054b8cc9
commit da681fe4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ const InternalSelect = <VT extends SelectValue = SelectValue>(
};
const SelectRef = React.forwardRef(InternalSelect) as <VT extends SelectValue = SelectValue>(
props: SelectProps<VT> & { ref?: React.Ref<HTMLInputElement> },
props: SelectProps<VT> & { ref?: React.Ref<RefSelectProps> },
) => React.ReactElement;
type InternalSelectType = typeof SelectRef;