File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9273,9 +9273,9 @@ namespace ts {
9273
9273
const source = types[i];
9274
9274
for (const target of types) {
9275
9275
if (source !== target) {
9276
- if (count === 10000 ) {
9277
- // After 10000 subtype checks we estimate the remaining amount of work by assuming the
9278
- // same ratio of checks to removals . If the estimated number of remaining type checks is
9276
+ if (count === 100000 ) {
9277
+ // After 100000 subtype checks we estimate the remaining amount of work by assuming the
9278
+ // same ratio of checks per element . If the estimated number of remaining type checks is
9279
9279
// greater than an upper limit we deem the union type too complex to represent. The
9280
9280
// upper limit is 25M for unions of primitives only, and 1M otherwise. This for example
9281
9281
// caps union types at 5000 unique literal types and 1000 unique object types.
You can’t perform that action at this time.
0 commit comments