gatsby-plugin-image
type errors
#30660
-
Hi! We're migrating to
In summation, I want to find the correct type usage for Any suggestions on how to tackle this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I believe it should be import { IGatsbyImageData } from 'gatsby-plugin-image' and for layout look here https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#layout export declare type Layout = "fixed" | "fullWidth" | "constrained"; |
Beta Was this translation helpful? Give feedback.
-
Hi. I'm a little unclear what the error is. Do you mean that it's complaining about |
Beta Was this translation helpful? Give feedback.
I believe it should be
IGatsbyImageData
and for layout look here https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#layout