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
Copy file name to clipboardExpand all lines: src/InterfaceGenerator.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ export default class InterfaceGenerator {
157
157
}
158
158
}
159
159
console.warn(
160
-
`The array at ${parentName}.${fieldName} is empty. Generated type will be 'unknown[]'. Consider adding variations with data for this field.`,
160
+
`${this.name}:The array at ${parentName}.${fieldName} is empty. Generated type will be 'unknown[]'. Consider adding variations with data for this field.`,
161
161
);
162
162
return"unknown[]";
163
163
}elseif(typeofvalue==="object"&&value!==null){
@@ -189,7 +189,7 @@ export default class InterfaceGenerator {
189
189
}
190
190
}elseif(value==="undefined[]"){
191
191
console.warn(
192
-
`The array at ${parentName}.${fieldName} is empty. Generated type will be 'unknown[]'. Consider adding variations with data for this field.`,
192
+
`${this.name}: The array at ${parentName}.${fieldName} is empty. Generated type will be 'unknown[]'. Consider adding variations with data for this field.`,
0 commit comments