We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents effe988 + 5453517 commit 69fd165Copy full SHA for 69fd165
specta-typescript/src/legacy.rs
@@ -492,7 +492,7 @@ pub(crate) fn enum_datatype(
492
let fields = skip_fields(tuple.fields()).collect::<Vec<_>>();
493
494
// This field is only required for `{ty}` not `[...]` so we only need to check when there one field
495
- let dont_join_ty = if tuple.fields().len() == 1 {
+ let dont_join_ty = if fields.len() == 1 {
496
let (_, ty) = fields.first().expect("checked length above");
497
validate_type_for_tagged_intersection(
498
ctx.clone(),
0 commit comments