13 releases (2 stable)
2.0.1 | Jul 14, 2023 |
---|---|
2.0.0 | Jul 13, 2023 |
0.1.10 | Mar 23, 2023 |
0.1.6 | Feb 20, 2023 |
0.1.2 | Dec 30, 2022 |
#2 in #typeshare
52 downloads per month
47KB
1.5K
SLoC
TRAM types
This repo contains type / schema definitions for the types used in the TRAM system.
typeshare
This repo implements typeshare for generating Typescript types from the Rust definitions
- install Rust via rustup.
- install typeshare cli via cargo:
cargo install typeshare-cli
- run the type generation command:
- via vscode task:
generate typescript types
- via command:
typeshare . --lang=typescript --output-file=./tram_types.ts
- via vscode task:
this will add create tram_types.ts
locally, and under the TRAM frontend source (provided TRAM repo is cloned next to this one in the same folder).
Dependencies
~29–41MB
~746K SLoC