cometkim / gatsby-plugin-typegen

Let's give developers using GatsbyJS better DX with extreme type-safety

Home Page:https://www.gatsbyjs.org/packages/gatsby-plugin-typegen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate the plugin options validation to be schema-based

cometkim opened this issue · comments

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