Skip to content

Commit

Permalink
Document change to export_to made in #250
Browse files Browse the repository at this point in the history
  • Loading branch information
escritorio-gustavo committed Mar 7, 2024
1 parent 0c70312 commit f8256bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ pub mod typelist;
///
/// - **`#[ts(export_to = "..")]`**
/// Specifies where the type should be exported to. Defaults to `bindings/<name>.ts`.
/// The `export_to` attribute will also override the `TS_RS_EXPORT_DIR` environment variable.
/// The path given to the `export_to` attribute is relative to the `TS_RS_EXPORT_DIR` environment variable,
/// or, if `TS_RS_EXPORT_DIR` is not set, to you project's root directory - more specifically,
/// it'll be relative to the `Cargo.toml` file.
/// If the provided path ends in a trailing `/`, it is interpreted as a directory.
/// Note that you need to add the `export` attribute as well, in order to generate a test which exports the type.
/// <br/><br/>
Expand Down

0 comments on commit f8256bb

Please sign in to comment.