Closed matepaiva closed 1 year ago
Also this caused a problem with the project
collection type, which uses the material
component. But, instead of adding the material
component import, it imported the material
collection type.
So this:
export interface Project_Plain {
id: number;
materials: Material_Plain[];
}
should be this:
export interface Project_Plain {
id: number;
materials: Material_Plain_Component[]; // also changing the import, of course
}
@matepaiva I just pushed the version 1.1.7 to npm with this fix, also adding in https://github.com/mancku/strapi-plugin-schemas-to-ts/commit/bb858179e17317e00f5f826a2ae72226e3b6d29b the posibility to configure the plugin to always add the 'Component' suffix
Dependencies
Description
My system have a collection type called "Material" and also a component called "Material". One possible fix is to add a suffix to the components field, so it would be "MaterialComponent".
This:
Would become this: