Skip to content

Commit 7c082f9

Browse files
committed
at root
1 parent 405a9b3 commit 7c082f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/jsxpression/src/codegen/schema/data-types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ export function declareDataTypes(schema: Schema): string {
66

77
if (schema.data) {
88
output += generateDataObjectComment(schema.data, " ");
9-
output += ` const data: {\n`;
9+
//output += ` const data: {\n`;
1010
Object.entries(schema.data).forEach(([dataKey, dataSchema]) => {
1111
output += generateNestedPropertyJSDoc(dataKey, dataSchema, " ");
1212

1313
const type = mapSchemaTypeToTypeScript(dataSchema);
1414

1515
const indentedType = type.includes("\n") ? type.replace(/\n/g, "\n ").replace(/\n {4}$/, "\n ") : type;
16-
output += ` ${dataKey}: ${indentedType};\n`;
16+
output += ` ${dataKey}: ${indentedType};\n`;
1717
});
1818
output += ` };\n`;
1919
}
2020

21-
output += `}\n\n`;
21+
//output += `}\n\n`;
2222
output += `export {};\n`;
2323

2424
return output;

0 commit comments

Comments
 (0)