Skip to content

Commit

Permalink
fix(TypeScript): add | undefined to emit for optional arguments (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnnh authored Oct 7, 2024
1 parent 5263899 commit 93543cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zap/src/output/typescript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ pub trait Output: ConfigProvider {
} else {
self.push("?: ");
self.push_ty(ty);
self.push(" | undefined");
}
} else {
self.push(": ");
Expand Down

0 comments on commit 93543cc

Please sign in to comment.