[mod] output:backend-typescript
This commit is contained in:
parent
b10f7baf68
commit
7e14087045
|
|
@ -527,7 +527,7 @@ namespace _sindri.outputs.backend.typescript
|
|||
"{{key}} = {{value}}",
|
||||
{
|
||||
"key": field.name,
|
||||
"value": (":" + field.name),
|
||||
"value": (":" + ("value_" + field.name)),
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
@ -553,7 +553,7 @@ namespace _sindri.outputs.backend.typescript
|
|||
domain.data_fields
|
||||
.map(
|
||||
field => ({
|
||||
"key": field.name,
|
||||
"key": ("value_" + field.name),
|
||||
"value": new lib_plankton.prog.struct_expression_fieldaccess(
|
||||
new lib_plankton.prog.struct_expression_variable("value"),
|
||||
field.name,
|
||||
|
|
@ -666,10 +666,19 @@ namespace _sindri.outputs.backend.typescript
|
|||
[]
|
||||
)
|
||||
)
|
||||
// main
|
||||
.concat(
|
||||
[
|
||||
new lib_plankton.prog.struct_statement_function_definition(
|
||||
"main",
|
||||
[
|
||||
],
|
||||
new lib_plankton.prog.struct_type_void(),
|
||||
(
|
||||
[]
|
||||
// misc
|
||||
.concat(
|
||||
[
|
||||
// lib_plankton.log.conf_push([new lib_plankton.log.class_channel_stdout()]);
|
||||
new lib_plankton.prog.struct_statement_procedure_call(
|
||||
new lib_plankton.prog.struct_expression_fieldaccess(
|
||||
new lib_plankton.prog.struct_expression_fieldaccess(
|
||||
|
|
@ -1248,16 +1257,11 @@ namespace _sindri.outputs.backend.typescript
|
|||
],
|
||||
null,
|
||||
[
|
||||
new lib_plankton.prog.struct_statement_return(
|
||||
new lib_plankton.prog.struct_expression_dict(
|
||||
[
|
||||
{
|
||||
"key": "status_code",
|
||||
"value": new lib_plankton.prog.struct_expression_literal(200),
|
||||
},
|
||||
{
|
||||
"key": "data",
|
||||
"value": new lib_plankton.prog.struct_expression_await(
|
||||
new lib_plankton.prog.struct_statement_declaration(
|
||||
true,
|
||||
"dummy",
|
||||
null,
|
||||
new lib_plankton.prog.struct_expression_await(
|
||||
new lib_plankton.prog.struct_expression_function_application(
|
||||
new lib_plankton.prog.struct_expression_variable(name_repository_function_delete(domain)),
|
||||
[
|
||||
|
|
@ -1275,8 +1279,19 @@ namespace _sindri.outputs.backend.typescript
|
|||
),
|
||||
]
|
||||
)
|
||||
)
|
||||
),
|
||||
}
|
||||
new lib_plankton.prog.struct_statement_return(
|
||||
new lib_plankton.prog.struct_expression_dict(
|
||||
[
|
||||
{
|
||||
"key": "status_code",
|
||||
"value": new lib_plankton.prog.struct_expression_literal(200),
|
||||
},
|
||||
{
|
||||
"key": "data",
|
||||
"value": new lib_plankton.prog.struct_expression_literal(null),
|
||||
},
|
||||
]
|
||||
)
|
||||
),
|
||||
|
|
@ -1412,6 +1427,10 @@ namespace _sindri.outputs.backend.typescript
|
|||
]
|
||||
)
|
||||
)
|
||||
),
|
||||
]
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue