Correct type

This commit is contained in:
ztplz 2018-11-27 23:21:45 +08:00 committed by 偏右
parent 0e99b6ea72
commit 8b70fe7664

View File

@ -78,7 +78,7 @@ export default class Mention extends React.Component<MentionProps, MentionState>
}
}
defaultSearchChange(value: String): void {
defaultSearchChange(value: string): void {
const searchValue = value.toLowerCase();
const filteredSuggestions = (this.props.suggestions || []).filter(
suggestion => {