added return structure

This commit is contained in:
2026-03-29 13:37:14 +02:00
parent 951fe36da3
commit 1f32935a29
4 changed files with 243 additions and 17 deletions

View File

@ -256,6 +256,8 @@ backend.add(1, 2).then((response) => {
});
```
If a method return type is a PHP class with public properties, JSON help now also includes `return_structure`, and the generated TypeScript client maps that class to an object shape based on those public properties.
These outputs can also be generated in command line:
* HTML: `$> php APIcalculator.php --html`