/ts-rust

Using Rust a like type system in TypeScript

Primary LanguageJavaScript

TS Rust

  • Simple methods to get Rust like types in TypeScript

  • Current types

    • Option (with unwrap and unwrapOr)
    • Result (with unwrap and unwrapOr)

Prerequisites

  • Node version 16+
  • Yarn (recommended) or NPM

Setup

  • Clone the repository
  • Run yarn or npm install
  • Check out the rust.ts file for how these methods are implemented

Commands

  • yarn dev: Runs the code with live-reloads
  • yarn build: Build the project with tsc
  • yarn slides: Run the slides on http://localhost:3000/