Gatsby: Correct way to validate the proptype of a gatsby-image object?

Created on 3 Nov 2019  路  1Comment  路  Source: gatsbyjs/gatsby

Summary

I can't find the correct way to validate the prop type of a image created with the gatsby-image plugin.

Relevant information

Gatsbyjs.org as far as I can see, does not validate the prop at all:

https://github.com/gatsbyjs/gatsby/blob/3aa41fb8dbf7fe294f35a706424c6b2b11345881/www/src/templates/template-contributor-page.js#L53
https://github.com/gatsbyjs/gatsby/blob/master/www/src/components/avatar.js

question or discussion

Most helpful comment

Great question!

You should be able to get prop types from the following links:

Hope this helps! Marking as answered and closing this for now. Thank you!

>All comments

Great question!

You should be able to get prop types from the following links:

Hope this helps! Marking as answered and closing this for now. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benstr picture benstr  路  3Comments

andykais picture andykais  路  3Comments

dustinhorton picture dustinhorton  路  3Comments

signalwerk picture signalwerk  路  3Comments

Oppenheimer1 picture Oppenheimer1  路  3Comments