🐛 BUG: @astrojs/image
doesn't define import types for the image imports
#3996
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
What version of
astro
are you using?1.0.0-beta.73
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
pnpm
What operating system are you using?
mac
Describe the Bug
The
@astrojs/image
integration handles image file imports and returns a metadata object rather than just a stringThis needs type defs so that TypeScript knows
import hero from './hero.jpg'
returned an object similar to{ src, width, height, format }
Link to Minimal Reproducible Example
https://astro.new
Participation
The text was updated successfully, but these errors were encountered: