Skip to content

Commit

Permalink
0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
PuffMeow committed Aug 23, 2023
1 parent 6f791be commit b1b1aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@puffmeow/rusty-schema2ts",
"version": "0.2.6",
"version": "0.2.7",
"main": "index.js",
"types": "index.d.ts",
"files": [
Expand Down
9 changes: 1 addition & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ fn schema_to_ts(schema: &str, options: Option<Config>) -> String {
interfaces.push_front(opts.explain.unwrap_or(DEFAULT_EXPLAIN.to_string()));
}

let mut output = Vec::from(interfaces).join("\n");

if !opts.semi.unwrap_or(DEFAULT_SEMI) {
// remove all semicolons
output = output.replace(';', "");
}

output
Vec::from(interfaces).join("\n")
}

fn get_type(
Expand Down

0 comments on commit b1b1aa7

Please sign in to comment.