mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 21:02:45 -07:00
refactor(typescript): use generic instead of simple array type (#205)
This commit is contained in:
committed by
GitHub
parent
08b75b1a79
commit
c76464bf8a
@@ -1,4 +1,5 @@
|
||||
import { Link } from 'tuono'
|
||||
|
||||
import styles from './PokemonView.module.css'
|
||||
|
||||
interface Pokemon {
|
||||
|
||||
@@ -9,7 +9,7 @@ interface Pokemon {
|
||||
}
|
||||
|
||||
interface IndexProps {
|
||||
results: Pokemon[]
|
||||
results: Array<Pokemon>
|
||||
}
|
||||
|
||||
export default function IndexPage({
|
||||
|
||||
Reference in New Issue
Block a user