Skip to content

chore: bundle @types/json-schema in the generated d.ts types of RJSF #4420

@Elessar1802

Description

@Elessar1802

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 get JSONSchema7 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions