TS Rust
-
Simple methods to get Rust like types in TypeScript
-
Current types
Option
(withunwrap
andunwrapOr
)Result
(withunwrap
andunwrapOr
)
Prerequisites
- Node version 16+
- Yarn (recommended) or NPM
Setup
- Clone the repository
- Run
yarn
ornpm install
- Check out the rust.ts file for how these methods are implemented
Commands
yarn dev
: Runs the code with live-reloadsyarn build
: Build the project withtsc
yarn slides
: Run the slides on http://localhost:3000/