File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ ### Bug Fixes
4
+
5
+ - Fixed infinite loop caused by a fix for some complicated union/intersection types, #2468 .
6
+
3
7
## v0.25.5 (2024-01-01)
4
8
5
9
## Features
Original file line number Diff line number Diff line change @@ -135,10 +135,12 @@ export function convertType(
135
135
// TS 4.2 added this to enable better tracking of type aliases.
136
136
// We need to check it here, not just in the union checker, because typeToTypeNode
137
137
// will use the origin when serializing
138
+ // aliasSymbol check is important - #2468
138
139
if (
139
140
typeOrNode . isUnion ( ) &&
140
141
typeOrNode . origin &&
141
- ! typeOrNode . origin . isUnion ( )
142
+ ! typeOrNode . origin . isUnion ( ) &&
143
+ ! typeOrNode . aliasSymbol
142
144
) {
143
145
return convertType ( context , typeOrNode . origin ) ;
144
146
}
You can’t perform that action at this time.
0 commit comments