Describe the bug
Typescript users get type errors trying to use traverse due to JSONSchema not being available, since @json-schema-tools/meta-schema is only a devDependency of this package and the JSONSchema type doesn't seem to get bundled.
To Reproduce
Steps to reproduce the behavior:
- Install @json-schema-tools/traverse
- Attempt to write some trivial typescript transformer code such as:
traverse(schema, (schemaOrSubschema) => {
return schemaOrSubschema;
});
- A type error is shown against the return type
Installing @json-schema-tools/meta-schema fixes the issue as the JSONSchema type is provided by it.
Expected behavior
I think this package should declare @json-schema-tools/meta-schema as either a peer dependency or regular dependency.