It's always frustrating in TS when you initialize an array, and only add one type (in this case a number) to it, it's still typed as "any[]". My hack for this is to never initialize with an array literal, but using the array constructor with the generic, e.g. "const indexes = new Array()". I think this is more elegant than "const indexes: number[] = []" Also, for a cosmetic thing - if there are no results, the searchbox should not have that extra padding at the bottom under the input (like at 31:33 is darker grey). Very nice tutorial!
awesome, thank you! with Svelte 5 around the corner, and with the great Svelte 5 videos you've done, could you possibly say at the beginning of these videos if you'll be using Svelte 4 or 5? i think it could be useful for when Svelte 5 comes out and people come back to your older videos.
@@JoyofCodeDev i'm newbie, so can you explain for me about data.json . So with big project, there are so many data, so we can't fetch all database and then save as data.json and then use flexsearch?