Skip to content

Commit

Permalink
fix(gatsby-transformer-sharp): mark highlight/shadow duotone args as …
Browse files Browse the repository at this point in the history
…required (#15829)
  • Loading branch information
pieh authored and GatsbyJS Bot committed Jul 17, 2019
1 parent 044eea5 commit f838d00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/gatsby-transformer-sharp/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const {
GraphQLInt,
GraphQLFloat,
GraphQLEnumType,
GraphQLNonNull,
} = require(`gatsby/graphql`)
const sharp = require(`./safe-sharp`)
const { Potrace } = require(`potrace`)
Expand Down Expand Up @@ -49,8 +50,8 @@ const DuotoneGradientType = new GraphQLInputObjectType({
name: `DuotoneGradient`,
fields: () => {
return {
highlight: { type: GraphQLString },
shadow: { type: GraphQLString },
highlight: { type: new GraphQLNonNull(GraphQLString) },
shadow: { type: new GraphQLNonNull(GraphQLString) },
opacity: { type: GraphQLInt },
}
},
Expand Down

0 comments on commit f838d00

Please sign in to comment.