Skip to content

Commit

Permalink
fix(gatsby-plugin-utils): Make GatsbyImageData nullable (#35777) (#…
Browse files Browse the repository at this point in the history
…35785)

Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
gatsbybot and LekoArts authored May 31, 2022
1 parent 823b22e commit e7a3e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export function generateGatsbyImageFieldConfig(
IGatsbyImageDataArgs
> {
return {
type: hasFeature(`graphql-typegen`) ? `GatsbyImageData!` : `JSON`,
type: hasFeature(`graphql-typegen`) ? `GatsbyImageData` : `JSON`,
description: `Data used in the <GatsbyImage /> component. See https://gatsby.dev/img for more info.`,
args: {
layout: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ interface RemoteFile {
fit: RemoteFileFit = COVER
cropFocus: [RemoteFileCropFocus]
quality: Int = 75
): GatsbyImageData!
): GatsbyImageData
}
type File implements Node @dontInfer {
Expand Down Expand Up @@ -582,7 +582,7 @@ interface RemoteFile {
fit: RemoteFileFit = COVER
cropFocus: [RemoteFileCropFocus]
quality: Int = 75
): GatsbyImageData!
): GatsbyImageData
}
type File implements Node @dontInfer {
Expand Down Expand Up @@ -981,7 +981,7 @@ interface RemoteFile {
fit: RemoteFileFit = COVER
cropFocus: [RemoteFileCropFocus]
quality: Int = 75
): GatsbyImageData!
): GatsbyImageData
}
type File implements Node @dontInfer {
Expand Down

0 comments on commit e7a3e6e

Please sign in to comment.