Open DrSensor opened 5 years ago
This is just a temporary hack, in the future find a way to use and contribute to swc_ecma_codegen
typescript implementation. (hint: fork then include that as a git-submodule)
beware: this might need more RAM since Rust langserver doesn't have a mode to conserve memory. So delay this until I can buy better laptop 😢
assess if serde typescript-definitions crates is suitablethe type must be determined before compilation so it can't generate n-number of possible types in a union type ❌interface
and uniontype
for Stateinvestigate if serde typescript-definitions can generateit can generate type of plain object ✔️interface
(or atleast plain objecttype
can be treated asinterface
in XState)json_typegen
resultsjson_typegen above.json -O typescript --name MachineConfig > below.ts
Things to keep track