Skip to content

Commit e7a3e6e

Browse files
gatsbybotLekoArts
andauthored
fix(gatsby-plugin-utils): Make GatsbyImageData nullable (#35777) (#35785)
Co-authored-by: Lennart <[email protected]>
1 parent 823b22e commit e7a3e6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/gatsby-plugin-utils/src/polyfill-remote-file/graphql/gatsby-image-resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export function generateGatsbyImageFieldConfig(
261261
IGatsbyImageDataArgs
262262
> {
263263
return {
264-
type: hasFeature(`graphql-typegen`) ? `GatsbyImageData!` : `JSON`,
264+
type: hasFeature(`graphql-typegen`) ? `GatsbyImageData` : `JSON`,
265265
description: `Data used in the <GatsbyImage /> component. See https://gatsby.dev/img for more info.`,
266266
args: {
267267
layout: {

packages/gatsby/src/schema/__tests__/__snapshots__/print.js.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ interface RemoteFile {
193193
fit: RemoteFileFit = COVER
194194
cropFocus: [RemoteFileCropFocus]
195195
quality: Int = 75
196-
): GatsbyImageData!
196+
): GatsbyImageData
197197
}
198198
199199
type File implements Node @dontInfer {
@@ -582,7 +582,7 @@ interface RemoteFile {
582582
fit: RemoteFileFit = COVER
583583
cropFocus: [RemoteFileCropFocus]
584584
quality: Int = 75
585-
): GatsbyImageData!
585+
): GatsbyImageData
586586
}
587587
588588
type File implements Node @dontInfer {
@@ -981,7 +981,7 @@ interface RemoteFile {
981981
fit: RemoteFileFit = COVER
982982
cropFocus: [RemoteFileCropFocus]
983983
quality: Int = 75
984-
): GatsbyImageData!
984+
): GatsbyImageData
985985
}
986986
987987
type File implements Node @dontInfer {

0 commit comments

Comments
 (0)