chore: bundle @types/json-schema in the generated d.ts types of RJSF #4420
Labels
feature
Is a feature request
needs triage
Initial label given, to be assigned correct labels and assigned
Prerequisites
What theme are you using?
utils
Is your feature request related to a problem? Please describe.
If I try to use
StrictRJSFForm
type from@rjsf/utils
, we don't getJSONSchema7
type since"@types/json-schema": "^7.0.15"
is a dev-dependency.Took me some time to realise this issue. As a quick fix for my app I just added the
"@types/json-schema"
as a dev-dependency. But this will break as soon as RJSF moves to a new json schema format.Describe the solution you'd like
While I understand
@types/json-schema
should be a dev-dependency but wouldn't it be better if this type is bundled with the generated types? Or maybe add this as a special box to documents if no such change is made to the code?Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: