Skip to content

Commit

Permalink
feat(prettier): print TSTupleType (oxc-project#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven authored Nov 18, 2023
1 parent 97fee26 commit 70b80ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crates/oxc_prettier/src/format/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use super::Format;
#[allow(clippy::enum_variant_names)]
pub enum Array<'a, 'b> {
ArrayExpression(&'b ArrayExpression<'a>),
#[allow(unused)]
TSTupleType(&'b TSTupleType<'a>),
ArrayPattern(&'b ArrayPattern<'a>),
ArrayAssignmentTarget(&'b ArrayAssignmentTarget<'a>),
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_prettier/src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ impl<'a> Format<'a> for TSTemplateLiteralType<'a> {

impl<'a> Format<'a> for TSTupleType<'a> {
fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> {
Doc::Line
array::print_array(p, &Array::TSTupleType(self))
}
}

Expand Down

0 comments on commit 70b80ba

Please sign in to comment.