mirror of
https://github.com/BrianHicks/elm-duet.git
synced 2024-10-05 17:37:24 +03:00
types don't have trailing newlines
This commit is contained in:
parent
757c03c753
commit
47e37a400e
@ -36,7 +36,7 @@ impl Schema {
|
||||
.to_source(),
|
||||
);
|
||||
|
||||
buffer.push('\n');
|
||||
buffer.push_str("\n\n");
|
||||
buffer.push_str(
|
||||
&typescript::TSType::new_ref("Flags".to_string())
|
||||
.into_init()
|
||||
|
@ -87,7 +87,6 @@ impl TSType {
|
||||
out.push_str(name); // TODO: escape?
|
||||
out.push_str(" = ");
|
||||
out.push_str(&definition.to_source());
|
||||
out.push('\n');
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,7 +203,7 @@ mod tests {
|
||||
|
||||
assert_eq!(
|
||||
type_.to_source(),
|
||||
"type Flags = {\n a: string;\n}\n".to_string(),
|
||||
"type Flags = {\n a: string;\n}".to_string(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user