Some pluginsĪlready publish types for their configurations, so gatsby-ts provides a method to make appyling those types easier. It may be desirable to apply types to the plugin array that you define for Gatsby’s consumption. See more details in Generating plugin arrays (For details about this This allows you to restrict the plugin definitions the types that are (hopefully) published by each It has a generic type parameter that you can use to define a union of accepted gatsby plugins & options. Use this function to generate a strongly typed array of gatsby plugin definitions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |