Skip to content

bug(json-schema): JsonSchema.fold without importing json-schema-types raises a TypeError  #457

@ahrjarrett

Description

@ahrjarrett

To reproduce this bug, comment out line 2 in this sandbox.

Doing so raises this TypeError:

The inferred type of 'fromJsonSchema' cannot be named without a reference to '../../node_modules/@traversable/json-schema-types/dist/dts/types.js'. This is likely not portable. A type annotation is necessary.

It looks like there's some transitive type-dependency that's not crossing the package boundary, and the re-export isn't helping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions