Skip to content

Commit 625f8d4

Browse files
authored
Fix TypeScript types being emitted without typescript option (#170)
1 parent 46a7206 commit 625f8d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zap/src/output/typescript/types.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,9 @@ impl<'a> TypesOutput<'a> {
7272
}
7373

7474
pub fn code(config: &Config) -> Option<String> {
75+
if !config.typescript {
76+
return None;
77+
}
78+
7579
Some(TypesOutput::new(config).output())
7680
}

0 commit comments

Comments
 (0)