diff --git a/README.md b/README.md index 434edb97..8c0827ee 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ struct User { last_name: String, } ``` -When running `cargo test`, the TypeScript bindings will be exported to the file `bindings/User.ts`. +When running `cargo test` or `cargo test export_bindings`, the TypeScript bindings will be exported to the file `bindings/User.ts`. ### Features - generate type declarations from rust structs diff --git a/ts-rs/src/lib.rs b/ts-rs/src/lib.rs index c49a83cf..9a720644 100644 --- a/ts-rs/src/lib.rs +++ b/ts-rs/src/lib.rs @@ -54,7 +54,7 @@ //! last_name: String, //! } //! ``` -//! When running `cargo test`, the TypeScript bindings will be exported to the file `bindings/User.ts`. +//! When running `cargo test` or `cargo test export_bindings`, the TypeScript bindings will be exported to the file `bindings/User.ts`. //! //! ## Features //! - generate type declarations from rust structs