@oak-digital/types-4-strapi-2 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -124,11 +124,18 @@ var Attributes = /** @class */ (function () {
|
|
|
124
124
|
case 'component':
|
|
125
125
|
var componentName = attr.component;
|
|
126
126
|
var relationNameObj = this.RelationNames[componentName];
|
|
127
|
+
// TODO: assert correctly
|
|
128
|
+
var componentInterface = relationNameObj.file;
|
|
127
129
|
/* console.log(this.RelationNames); */
|
|
128
130
|
var dependencyComponentName = relationNameObj.name;
|
|
129
131
|
/* isArray = attr.repeatable ?? false; */
|
|
130
132
|
isArray = false; // we already handle this here.
|
|
131
133
|
str += dependencyComponentName;
|
|
134
|
+
if (componentInterface.hasPopulatableAttributes()) {
|
|
135
|
+
str += '<';
|
|
136
|
+
str += "".concat(this.RelationNames['builtins::ExtractNested'].name, "<").concat(constants_1.POPULATE_GENERIC_NAME, ", '").concat(attrName, "'>");
|
|
137
|
+
str += '>';
|
|
138
|
+
}
|
|
132
139
|
if (attr.repeatable) {
|
|
133
140
|
str += '[]';
|
|
134
141
|
}
|