Add typing for search result state hook value

This commit is contained in:
Nikhil Nawgiri 2024-10-27 12:47:53 +01:00
parent d825f8842a
commit e47510f912

View file

@ -7,7 +7,7 @@ import './App.css'
function App() {
const [searchString, setSearchString] = useState("");
const [searchResults, setSearchResults] = useState([]);
const [searchResults, setSearchResults] = useState<{}[]>([]);
const [itemChoiceByUser, setItemChoiceByUser] = useState({});
const [count, setCount] = useState(0)