Array with generic vs type[]
Using array with generic works but the same thing using type[] does not. anyone know why? thanks
3 Replies
Maybe your Link interface is merging with something that's causing the error?
It's really hard to tell without more context. When asking for help, share your code via codesandbox (or something similar). Screenshoting code is never a good idea.
Anyway, try changing
interface Link
to type Link =
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah using just type Link = worked @Kasper @jetpackjoe
I am no ts wizard - so why that worked instead makes no sense but for now its fine
appreciate the help