Skip to content

Commit

Permalink
respect config.serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFoxPro committed Oct 2, 2024
1 parent 89dbcaf commit 15057c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions serde-generate/src/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ impl<'a> CodeGenerator<'a> {
writeln!(emitter.out)?;
emitter.generate_container_typedef(name, format)?;
}
for (name, format) in registry {
writeln!(emitter.out)?;
emitter.generate_container(name, format)?;
if self.config.serialization {
for (name, format) in registry {
writeln!(emitter.out)?;
emitter.generate_container(name, format)?;
}
}

Ok(())
Expand Down

0 comments on commit 15057c4

Please sign in to comment.