Add tokenSeparators prop to Select TS definitions (#4441)

[The documentation](https://ant.design/components/select/) lists the `tokenSeparators` property on the `Select` component, but the TypeScript definition for the component does not contain the `tokenSeparators` property. The underlying `rc-select` component [defines tokenSeparators](https://github.com/react-component/select/blob/master/src/Select.jsx#L79) as `PropTypes.arrayOf(PropTypes.string)`, so I've added it as an optional TypeScript property of type `string[]`.

- Add tokenSeparators to SelectProps in Select Component
This commit is contained in:
Edd Hannay 2017-01-02 11:11:13 +00:00 committed by Wei Zhu
parent ffa7f9b1ba
commit ec2bec5417

View File

@ -36,6 +36,7 @@ export interface SelectProps {
dropdownStyle?: React.CSSProperties;
dropdownMenuStyle?: React.CSSProperties;
onChange?: (value: SelectValue) => void;
tokenSeparators?: string[];
}
export interface OptionProps {