Skip to content

Commit

Permalink
export da const
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Jun 2, 2024
1 parent 785f393 commit 22a8301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js_ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn render_all_parts<T: ExportLanguage<Config = specta::ts::ExportConfig>>(
}

format!(
"const {name} = {}{};",
"export const {name} = {}{};",
serde_json::to_string(&value)
.expect("failed to serialize from `serde_json::Value`"),
as_const.unwrap_or("")
Expand Down

0 comments on commit 22a8301

Please sign in to comment.