feat(prettier): print TSTupleType (#1408)

This commit is contained in:
Wenzhe Wang 2023-11-18 16:44:27 +08:00 committed by GitHub
parent 97fee26e25
commit 70b80ba542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -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>),

View file

@ -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))
}
}