Script to gen typescript
Close #48 (closed)
This MR provides an helper to generate typescript definition from hardware marshmallow description.
It is based on a custom version of typemallow
(https://github.com/vallsv/typemallow/tree/fixes2)
The result still have to be tuned, but can be used sometimes to refactor the code.
This can be merged as an helper script.
Here is the kind of result
export interface ActuatorSchema {
properties: {
state: string;
};
}
export interface BeamviewerSchema {
properties: {
state: string;
foil: string;
led: string;
screen: string;
diode_ranges: string[];
diode_range: string;
};
}
Edited by Valentin Valls