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

Download history 1/week @ 2024-07-17 15/week @ 2024-07-24 12/week @ 2024-09-18 17/week @ 2024-09-25

52 downloads per month

MIT license

47KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments TypeScript 190 SLoC // 0.0% comments

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

  1. install Rust via rustup.
  2. install typeshare cli via cargo: cargo install typeshare-cli
  3. run the type generation command:
    • via vscode task: generate typescript types
    • via command: typeshare . --lang=typescript --output-file=./tram_types.ts

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