diff options
Diffstat (limited to 'cli/doc/printer.rs')
-rw-r--r-- | cli/doc/printer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/doc/printer.rs b/cli/doc/printer.rs index d24e65901..8525a52e9 100644 --- a/cli/doc/printer.rs +++ b/cli/doc/printer.rs @@ -206,7 +206,7 @@ fn render_ts_type(ts_type: doc::ts_type::TsTypeDef) -> String { TsTypeDefKind::This => "this".to_string(), TsTypeDefKind::Tuple => { let tuple = ts_type.tuple.unwrap(); - let mut output = "".to_string(); + let mut output = "[".to_string(); if !tuple.is_empty() { for ts_type in tuple { output += render_ts_type(ts_type).as_str(); @@ -214,6 +214,7 @@ fn render_ts_type(ts_type: doc::ts_type::TsTypeDef) -> String { } output.truncate(output.len() - 2); } + output += "]"; output } TsTypeDefKind::TypeLiteral => { |