mancku / strapi-plugin-schemas-to-ts

Strapi Plugin Schemas to TS is a plugin for Strapi v4 that automatically converts your Strapi schemas into Typescript interfaces.
MIT License
65 stars 20 forks source link

Circular relation error #1

Closed mikenavi closed 1 year ago

mikenavi commented 1 year ago

Hello,

If scheme have relation to itself (for example organization with suborganization implements one model with parent-child fields relation) got error on importing type

mancku commented 1 year ago

Sorry @mikenavi I've been busy and didn't have time to take a look to this. I'll work on it next week. I'm pretty sure it'll be an easy fix

mancku commented 1 year ago

Hi @mikenavi I just published the version 1.1.1 to NPM with this fix

mikenavi commented 1 year ago

Thank you very much