You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry the late reply. I've missed this issue completely :)
You're right that this conflict may happen, though I'm not sure if we want to enforce any prefix/suffix to prevent that from happening. You can quite easily modify the names of the objects in Delivery models in the way you mentioned by using the nameResolvers option:
This would fix the issue yes. However, I'm looking to not prefix the actual type but rather namespace the types themselves.
I think a potential solution would be to have a toggle to choose whether the barrel files generate export * from '...' vs export * as ContentTypes from '...'
Brief bug description
When using v8.0.0-8 of the model generator, it is possible to create conflicting type names.
Repro steps
Expected behavior
Export all snippets/types/taxonomies/etc under a unique name.
e.g.
ContentTypes.Banner
andContentTypeSnippets.Banner
Test environment
Screenshots
Error in barrel file:

Conflicting types:

The text was updated successfully, but these errors were encountered: