ThomasAribart / json-schema-to-ts

Infer TS types from JSON schemas 📝
MIT License
1.4k stars 30 forks source link

Can no longer import JSONSchema7 #182

Closed dw-bayer closed 6 months ago

dw-bayer commented 6 months ago

In 2.12.0 I can no longer import JSONSchema7. in 2.9.2 I can. :D

I looked in the repo and it's still there. not sure why it doesn't want to come out anymore.

import type { JSONSchema7 } from 'json-schema-to-ts';
// makes for unhappy typescript
ThomasAribart commented 6 months ago

Ah yes, my bad :/ Made a breaking change there 🤦‍♂️

You can simply import JSONSchema, it's the same !