Closed cometkim closed 2 years ago
Currently, this plugin is using custom validation logic (which is not pretty) for the plugin options and provides type definition separately.
I recently realized that Gatsby already has an API for it.
https://www.gatsbyjs.com/docs/node-apis/#pluginOptionsSchema
It can be migrated to the schema-based validation
This has been done in v3 and will be released soon
Currently, this plugin is using custom validation logic (which is not pretty) for the plugin options and provides type definition separately.
I recently realized that Gatsby already has an API for it.
https://www.gatsbyjs.com/docs/node-apis/#pluginOptionsSchema
It can be migrated to the schema-based validation