Skip to content

Commit

Permalink
fix(gatsby-image): update typescript definitions - properly mark fiel…
Browse files Browse the repository at this point in the history
…ds as optional (#10419)

It seems like these should not be a mandatory. At the moment when building a TypeScript gatsby site, TypeScript forces the user to pass a value.
  • Loading branch information
jul-sh authored and pieh committed Dec 12, 2018
1 parent a0bba64 commit f2b1821
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/gatsby-image/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ interface FluidObject {
src: string
srcSet: string
sizes: string
base64: string
tracedSVG: string
srcWebp: string
srcSetWebp: string
base64?: string
tracedSVG?: string
srcWebp?: string
srcSetWebp?: string
}

interface GatsbyImageProps {
Expand All @@ -34,7 +34,7 @@ interface GatsbyImageProps {
critical?: boolean
style?: object
imgStyle?: object
placeholderStyle: object
placeholderStyle?: object
backgroundColor?: string | boolean
onLoad?: () => void
onStartLoad?: (param: { wasCached: boolean }) => void
Expand Down

0 comments on commit f2b1821

Please sign in to comment.