Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtying committed Jan 20, 2024
1 parent f3c7f3b commit 6c66001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cd backend && cargo run --features dynamic

## Syncing types from Rust to Typescript

There are shared types in the Rust backend and the Typescript frontend; the `frontend/shengji-wasm/examples/print_json_schema.rs` file dumps the Rust types to JSON Schema, and the `yarn types` command will generate the Typescript types.
There are shared types in the Rust backend and the Typescript frontend; the `frontend/json-schema-bin/src/main.rs` file dumps the Rust types to JSON Schema, and the `yarn types` command will generate the Typescript types.

```
yarn types && yarn prettier --write && yarn lint --fix
Expand Down

0 comments on commit 6c66001

Please sign in to comment.