Can I know the what is the type declaration for images that are imported from public folder in nextjs.
I created a file called data in utils folder. Inside data file I imported the images from public folder and created a array of objects with keys like tile, desc, image.
For eg
const users = [ { avatar: img1, name: "some name", age: 12, }, { avatar: img2, name: "some name", age: 14, } ]
when i gave type for users obj it is showing an error of
Types of property 'img' are incompatible. Type 'StaticImageData' is missing the following properties from type 'HTMLImageElement': align, alt, border, complete, and 306 more.ts(2322)
Can some one tell me the exact type for images imported from public folder and used it in array of objects
I tried to change the staticimagetype but it is unable to find