import { AutoComplete } from 'antd'; import React from 'react'; const options = [ { value: 'Burns Bay Road' }, { value: 'Downing Street' }, { value: 'Wall Street' }, ]; const App: React.FC = () => ( option!.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1 } /> ); export default App;