File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/jsxpression/src/codegen/schema Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments