replace unknown type with explicit type
This commit is contained in:
parent
aa526df013
commit
bff6e053a3
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ const Search = () => {
|
||||||
const [selectedTags, setSelectedTags] = useState<TagsData[]>([])
|
const [selectedTags, setSelectedTags] = useState<TagsData[]>([])
|
||||||
const [searchInput, setSearchInput] = useState("")
|
const [searchInput, setSearchInput] = useState("")
|
||||||
|
|
||||||
const [postCards, setPostCards] = useState<unknown[]>([])
|
const [postCards, setPostCards] = useState<JSX.Element[]>([])
|
||||||
|
|
||||||
// parse search parameters
|
// parse search parameters
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -188,7 +188,7 @@ const Search = () => {
|
||||||
|
|
||||||
function doSearch() {
|
function doSearch() {
|
||||||
try {
|
try {
|
||||||
const _postCards: unknown[] = []
|
const _postCards: JSX.Element[] = []
|
||||||
for (const res of searchIndex.search(searchInput)) {
|
for (const res of searchIndex.search(searchInput)) {
|
||||||
const postData = map.posts[res.ref]
|
const postData = map.posts[res.ref]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue