feat(gatsby-image): export TS interfaces of gatsby-image object types#14284
feat(gatsby-image): export TS interfaces of gatsby-image object types#14284
Conversation
|
@kripod could you please explain to me why these need to be exported? I have been using these interfaces for a long time now without problems (when they weren't marked as exported). I can't find anything in the TypeScript docs on declaration files about this, so I wondered if you know why this is allowed? To get a better understanding of what I mean, here is a screenshot of the named imports available to me with As you can see, I can import and use the The only reason I can think this would have ever worked is because maybe TypeScript treats |

Description
When passing optimized images through type-safe components, the need for using gatsby-image object types may emerge.
E.g.: