Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't special case nullable types in isTypeEqualityComparableTo #59559

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Aug 8, 2024

closes #11920

Potential downsides of this PR:

  • it makes it harder to program defensively against potentially missing browser APIs and similar. This isn't quite a new problem though (if (window.matchMedia) {} is already an error)
  • it also makes it harder to consume potentially missing keys from index signature types outside of noUncheckedIndexedAccess. This can easily be mitigated by including | undefined in those index signatures - if the user wants to check against missing values then it makes sense to include those nullable types in the index signatures themselves. However, perhaps the biggest issue here is related to how people might want to cross-reference different-sized arrays

Note that the above downsides are not arguments in favor of special casing null. However, a more general "defensive programming" argument could still be used in its favor

Advantages of this PR:

  • more cohesive behavior around === that is easier to understand for people. The current logic is a special case and many people don't know that it is one
  • it helps to catch legitimate issues as it's not unlikely to have logical errors because of this behavior

@RyanCavanaugh mentions:

We intentionally allow this for the sake of defensive programming (i.e. defending against missing inputs from non-TS code). If there's enough demand we could add a flag or something.

I'm not sold, personally, on introducing a new flag to enable this behavior. Would it even be a strict flag? or one of the other opt-ins like noUncheckedIndexedAccess?

@DanielRosenwasser mentions:

Internal implementation detail: right now we use the comparability relationship for type assertions (casting) - if we did this, we'd need to have a separate type relationship (or ad-hoc check) for allowing you to cast undefined/null to any other type.

I'm also not sure if this is needed. Note that both comments are pretty old at this point and the TS landscape and user expectations changed a lot since then.

I don't mind implementing any of the above. This PR is meant as a conversation starter - I'd expect the final decision about this will require a design meeting either way and I can only address the async feedback received based on that.

I also expect user tests to reveal this to be quite breaking and at the same time, it might be hard to judge if those are good breaks or not. I could categorize them and count them by those categories to help aid the final decision though. Regardless, it will be interesting to see how breaking it turns out to be in its current form.

Open questions:

  1. should {} == null (and similar) be disallowed too? I think it's OK to allow this even if the left/right types wouldn't pass comparability + coercion check

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 8, 2024
@typescript-bot
Copy link
Collaborator

The TypeScript team hasn't accepted the linked issue #11920. If you can get it accepted, this PR will have a better chance of being reviewed.

@jakebailey
Copy link
Member

Why not

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 8, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started 👀 Results
user test this ✅ Started 👀 Results
run dt ✅ Started 👀 Results
perf test this faster ✅ Started 👀 Results

@kof
Copy link

kof commented Aug 8, 2024

Really excited about this one. This has been costing us real bugs uncaught by TS. When we checked undefined but didn't check for null and undefined was literally not even a potential value.

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

There were interesting changes:

Branch only errors:

Package: authorizenet
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/authorizenet/authorizenet-tests.ts
  81:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'ARBUpdateSubscriptionResponse' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: google-protobuf
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/google-protobuf/google-protobuf-tests.ts
  460:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Map<number, string>' and 'undefined' have no overlap        @definitelytyped/expect
  471:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Map<string, MyTestObject>' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: snapchat-lens-studio
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/snapchat-lens-studio/test/face-in-video-controller/index.ts
  262:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'vec2' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: dockerode-compose
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/dockerode-compose/dockerode-compose-tests.ts
  22:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  25:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  44:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  47:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  66:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  69:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 6 problems (6 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: google-ads-scripts
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/google-ads-scripts/google-ads-scripts-tests.ts
  527:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'null' have no overlap         @definitelytyped/expect
  529:20  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'null' have no overlap         @definitelytyped/expect
  621:12  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'GoogleAdsDate' and 'null' have no overlap  @definitelytyped/expect

✖ 3 problems (3 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: mithril
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/mithril/test/test-stream.ts
  177:20  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types '[number, string, unknown]' and 'undefined' have no overlap  @definitelytyped/expect
  208:20  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap                     @definitelytyped/expect
  224:20  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap                     @definitelytyped/expect

✖ 3 problems (3 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: meteor
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/meteor/test/react-meteor-accounts-tests.tsx
  63:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'User' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: w3c-web-usb
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/w3c-web-usb/w3c-web-usb-tests.ts
  62:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'USBConfiguration | undefined' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: angular-es
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/angular-es/angular-es-tests.ts
  101:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Object' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: fscreen
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/fscreen/fscreen-tests.ts
  11:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Element | undefined' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: node/v16
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node/v16/test/util.ts
  115:57  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  121:61  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: node-mysql-wrapper
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node-mysql-wrapper/node-mysql-wrapper-tests.ts
  154:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'UserInfo' and 'undefined' have no overlap       @definitelytyped/expect
  159:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Comment[]' and 'undefined' have no overlap      @definitelytyped/expect
  163:25  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'CommentLike[]' and 'undefined' have no overlap  @definitelytyped/expect

✖ 3 problems (3 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: watch
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/watch/watch-tests.ts
   8:34  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Stats' and 'null' have no overlap  @definitelytyped/expect
   8:51  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Stats' and 'null' have no overlap  @definitelytyped/expect
  10:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Stats' and 'null' have no overlap  @definitelytyped/expect

✖ 3 problems (3 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: yuka
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/yuka/test/examples/navigation/navmeshPerformance/CustomVehicle.ts
  28:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Polygon' and 'null' have no overlap  @definitelytyped/expect

/mnt/vss/_work/1/DefinitelyTyped/types/yuka/test/examples/playground/hideAndSeek/Player.ts
  85:25  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Vector3' and 'null' have no overlap  @definitelytyped/expect

/mnt/vss/_work/1/DefinitelyTyped/types/yuka/test/examples/playground/hideAndSeek/World.ts
  198:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Vector3' and 'null' have no overlap  @definitelytyped/expect

/mnt/vss/_work/1/DefinitelyTyped/types/yuka/test/examples/playground/shooter/World.ts
  86:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Vector3' and 'null' have no overlap  @definitelytyped/expect

✖ 4 problems (4 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: node/v18
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node/v18/test/util.ts
  126:57  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  132:61  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: create-subscription
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/create-subscription/create-subscription-tests.tsx
  53:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: screeps
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/screeps/screeps-tests.ts
  338:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: underscore
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/underscore/underscore-tests.ts
  2534:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap  @definitelytyped/expect
  2537:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: jest
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/jest/jest-tests.ts
  1004:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect
  1011:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect
  1015:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap   @definitelytyped/expect
  1019:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap   @definitelytyped/expect
  1023:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect
  1027:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Plugins' and 'undefined' have no overlap  @definitelytyped/expect
  1033:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect
  1050:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect

✖ 8 problems (8 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: node/v20
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node/v20/test/util.ts
  136:57  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  142:61  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: node
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node/test/util.ts
  136:57  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  142:61  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: deoxxa-content-type
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/deoxxa-content-type/deoxxa-content-type-tests.ts
  21:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: insight
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/insight/insight-tests.ts
  15:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: react-native-modals
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/react-native-modals/react-native-modals-tests.tsx
  74:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Modal' and 'null' have no overlap  @definitelytyped/expect
  80:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Modal' and 'null' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: smooch
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/smooch/smooch-tests.ts
  63:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Metadata' and 'undefined' have no overlap  @definitelytyped/expect
  64:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Metadata' and 'null' have no overlap       @definitelytyped/expect
  77:1  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Metadata' and 'undefined' have no overlap  @definitelytyped/expect
  78:1  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Metadata' and 'null' have no overlap       @definitelytyped/expect

✖ 4 problems (4 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: pleasanter-web-script
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/pleasanter-web-script/pleasanter-web-script-tests.ts
  483:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'number' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: protractor-beautiful-reporter
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/protractor-beautiful-reporter/protractor-beautiful-reporter-tests.ts
  92:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect
  95:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: d3-selection/v2
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/d3-selection/v2/d3-selection-tests.ts
  654:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'SVGAnimatedTransformList' and 'undefined' have no overlap  @definitelytyped/expect
  670:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'SVGAnimatedTransformList' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: xrm/v8
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/xrm/v8/xrm-tests.ts
  59:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'LookupValue[]' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: arconnect
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/arconnect/arconnect-tests.ts
  1:1  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types '{ connect(permissions: PermissionType[]): Promise<void>; disconnect(): Promise<void>; getActiveAddress(): Promise<string>; getAllAddresses(): Promise<...>; ... 4 more ...; decrypt(data: Uint8Array, options: { ...; }): Promise<...>; }' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: chrome-apps
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chrome-apps/test/index.ts
  624:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'EmbedRequest' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: knockout
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/knockout/test/index.ts
  574:17  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: node-localstorage
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node-localstorage/node-localstorage-tests.ts
  48:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Person' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: webappsec-credential-management
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/webappsec-credential-management/webappsec-credential-management-tests.ts
  386:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'ArrayBuffer | null' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: d3-selection
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/d3-selection/d3-selection-tests.ts
  654:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'SVGAnimatedTransformList' and 'undefined' have no overlap  @definitelytyped/expect
  670:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'SVGAnimatedTransformList' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: nodemailer
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/nodemailer/nodemailer-tests.ts
  1396:12  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap            @definitelytyped/expect
  1400:12  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'AddressOrGroup[]' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: webmidi
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/webmidi/webmidi-tests.ts
  105:5  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types '{ (options?: MIDIOptions | undefined): Promise<MIDIAccess>; (options?: MIDIOptions | undefined): Promise<MIDIAccess>; }' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: bootstrap-fileinput
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/bootstrap-fileinput/bootstrap-fileinput-tests.ts
  76:13  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'File' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: rdf-ext
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/rdf-ext/rdf-ext-tests.ts
  232:12  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types '{ value: string; termType: "BlankNode"; } | { value: string; termType: "Variable"; } | { value: string; termType: "NamedNode"; } | { value: ""; termType: "DefaultGraph"; }' and 'null' have no overlap  @definitelytyped/expect
  350:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types '{ value: string; termType: "BlankNode"; } | { value: string; termType: "Variable"; } | { value: string; termType: "NamedNode"; } | { value: ""; termType: "DefaultGraph"; }' and 'null' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: vinyl
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/vinyl/vinyl-tests.ts
  582:64  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string | Buffer' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: react-bootstrap-typeahead
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/react-bootstrap-typeahead/react-bootstrap-typeahead-tests.tsx
  37:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'State[]' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: 11ty__eleventy-img
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/11ty__eleventy-img/11ty__eleventy-img-tests.ts
  9:12  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'T & { src: string; width: number; height: number; srcset?: string | undefined; sizes?: string | undefined; }' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: express-fileupload
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/express-fileupload/express-fileupload-tests.ts
  13:40  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: bluebird
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/bluebird/bluebird-tests.ts
  307:9  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Foo' and 'null' have no overlap  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: chai
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai/chai-tests.ts
  1168:49  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Object' and 'null' have no overlap  @definitelytyped/expect
  1194:47  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Object' and 'null' have no overlap  @definitelytyped/expect
  1194:62  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'Object' and 'null' have no overlap  @definitelytyped/expect

✖ 3 problems (3 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

Package: d3-selection/v1
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/d3-selection/v1/d3-selection-tests.ts
  638:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'SVGAnimatedTransformList' and 'undefined' have no overlap  @definitelytyped/expect
  654:16  error  TypeScript@local compile error: 
This comparison appears to be unintentional because the types 'SVGAnimatedTransformList' and 'undefined' have no overlap  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240808/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/59559/merge:

Something interesting changed - please have a look.

Details

azure-sdk

/mnt/ts_downloads/_/m/azure-sdk/build.sh

  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'PropertySignature' and 'undefined' have no overlap.
    • Project Scope
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'Symbol' and 'undefined' have no overlap.
    • Project Scope
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/azure-sdk/src/util/samples/generation.ts(194,17)
    • /mnt/ts_downloads/_/m/azure-sdk/src/util/samples/generation.ts(199,19)
  • [MISSING] error TS2322: Type 'string' is not assignable to type 'never'.
    • /mnt/ts_downloads/_/m/azure-sdk/test/narrowedTypes.ts(59,9)
    • /mnt/ts_downloads/_/m/azure-sdk/test/narrowedTypes.ts(213,9)
    • /mnt/ts_downloads/_/m/azure-sdk/test/narrowedTypes.ts(254,11)

bluebird

/mnt/ts_downloads/_/m/bluebird/tsconfig.json

  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'this' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/bluebird/node_modules/bluebird/js/release/debuggability.js(819,34)
    • /mnt/ts_downloads/_/m/bluebird/node_modules/bluebird/js/release/debuggability.js(869,12)

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the user tests suite

Details

effect

packages/schema/benchmark/tsconfig.json

tsconfig.json

tsconfig.build.json

tsconfig.base.json

packages/effect/dtslint/tsconfig.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the user tests suite

Details

lodash

/mnt/ts_downloads/_/m/lodash/tsconfig.json

  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/lodash/node_modules/lodash/_baseClamp.js(12,9)
    • /mnt/ts_downloads/_/m/lodash/node_modules/lodash/clamp.js(24,7)
    • /mnt/ts_downloads/_/m/lodash/node_modules/lodash/clamp.js(28,7)
    • /mnt/ts_downloads/_/m/lodash/node_modules/lodash/inRange.js(45,7)

minimatch

/mnt/ts_downloads/_/m/minimatch/tsconfig.json

  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'undefined' and 'boolean' have no overlap.
    • /mnt/ts_downloads/_/m/minimatch/node_modules/minimatch/minimatch.js(669,22)

puppeteer

tools/eslint/tsconfig.json

packages/puppeteer-core/tsconfig.json

pyright

/mnt/ts_downloads/_/m/pyright/build.sh

  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'Scope' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/binder.ts(4065,16)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/binder.ts(4065,16)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/binder.ts(4065,16)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'Type' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/codeFlowEngine.ts(981,74)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(13092,28)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(13107,32)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/codeFlowEngine.ts(981,74)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/typeEvaluator.ts(13092,28)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/typeEvaluator.ts(13107,32)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/codeFlowEngine.ts(981,74)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(13092,28)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(13107,32)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/docStringConversion.ts(677,29)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/pathUtils.ts(228,9)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/pathUtils.ts(228,33)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/languageServerBase.ts(455,17)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/languageService/completionProvider.ts(2638,13)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/parser/tokenizer.ts(1321,33)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/docStringConversion.ts(677,29)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/pathUtils.ts(228,9)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/pathUtils.ts(228,33)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/languageServerBase.ts(455,17)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/languageService/completionProvider.ts(2638,13)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/parser/tokenizer.ts(1321,33)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/tests/harness/fourslash/fourSlashParser.ts(122,25)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/tests/textEditUtil.test.ts(158,51)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/tests/textEditUtil.test.ts(162,63)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/docStringConversion.ts(677,29)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/pathUtils.ts(228,9)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/pathUtils.ts(228,33)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/languageServerBase.ts(455,17)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/languageService/completionProvider.ts(2638,13)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/parser/tokenizer.ts(1321,33)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/operations.ts(125,9)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/operations.ts(631,9)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/operations.ts(125,9)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/operations.ts(631,9)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/operations.ts(125,9)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/operations.ts(631,9)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'ClassNode | ComprehensionNode | FunctionNode | LambdaNode | ModuleNode | TypeParameterListNode' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/parseTreeUtils.ts(872,12)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/parseTreeUtils.ts(872,12)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/parseTreeUtils.ts(872,12)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'SourceFileInfo' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/program.ts(2159,16)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/program.ts(2159,16)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/program.ts(2159,16)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'ParseFileResults' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/sourceFile.ts(665,24)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/sourceFile.ts(665,24)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/sourceFile.ts(665,24)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'TokenizerOutput' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/sourceFile.ts(665,58)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/sourceFile.ts(665,58)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/sourceFile.ts(665,58)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'Symbol' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(3602,28)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/typeEvaluator.ts(3602,28)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(3602,28)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'VirtualParamDetails' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(10212,20)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/typeEvaluator.ts(10212,20)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(10212,20)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'TypeVarType[]' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(15834,20)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/typeEvaluator.ts(15834,20)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(15834,20)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'ParseNode' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(19574,16)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/typeEvaluator.ts(19574,16)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/typeEvaluator.ts(19574,16)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/types.ts(3288,41)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/analyzer/types.ts(3289,41)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/commands/dumpFileDebugInfoCommand.ts(223,39)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/console.ts(175,13)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/console.ts(230,22)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/console.ts(231,16)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/textRange.ts(110,29)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/textRange.ts(110,58)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/types.ts(3288,41)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/analyzer/types.ts(3289,41)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/commands/dumpFileDebugInfoCommand.ts(223,39)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/console.ts(175,13)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/console.ts(230,22)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/console.ts(231,16)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/textRange.ts(110,29)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/textRange.ts(110,58)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/types.ts(3288,41)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/analyzer/types.ts(3289,41)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/commands/dumpFileDebugInfoCommand.ts(223,39)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/console.ts(175,13)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/console.ts(230,22)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/console.ts(231,16)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/textRange.ts(110,29)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/textRange.ts(110,58)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types '() => any' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/backgroundThreadBase.ts(124,26)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/backgroundThreadBase.ts(124,26)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/backgroundThreadBase.ts(124,26)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'DiagnosticSeverityOverrides' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/configOptions.ts(1545,17)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/configOptions.ts(1545,17)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/configOptions.ts(1545,17)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'PythonVersion' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/fullAccessHost.ts(132,17)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/fullAccessHost.ts(132,17)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/fullAccessHost.ts(132,17)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'TextRange' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/positionUtils.ts(29,12)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/parser/parser.ts(5242,16)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/positionUtils.ts(29,12)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/parser/parser.ts(5242,16)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/positionUtils.ts(29,12)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/parser/parser.ts(5242,16)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'T[]' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/serviceProvider.ts(120,13)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/serviceProvider.ts(120,13)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/serviceProvider.ts(120,13)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'Position' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/textRange.ts(126,29)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/common/textRange.ts(126,59)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/textRange.ts(126,29)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/common/textRange.ts(126,59)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/textRange.ts(126,29)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/common/textRange.ts(126,59)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'OperatorFlags' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/parser/tokenizer.ts(389,43)
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/parser/tokenizer.ts(396,43)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/parser/tokenizer.ts(389,43)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/parser/tokenizer.ts(396,43)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/parser/tokenizer.ts(389,43)
    • /mnt/ts_downloads/_/m/pyright/vscode-pyright: ../pyright-internal/src/parser/tokenizer.ts(396,43)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'SourceFileInfo[]' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright: ../pyright-internal/src/pyright.ts(578,13)
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/pyright.ts(578,13)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'string | null' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/tests/harness/fourslash/testState.ts(900,17)
  • [NEW] error TS2367: This comparison appears to be unintentional because the types 'SignatureDisplayType' and 'undefined' have no overlap.
    • /mnt/ts_downloads/_/m/pyright/pyright-internal: src/tests/harness/fourslash/testState.ts(1729,13)

webpack

tsconfig.types.json

xterm.js

src/tsconfig-library-base.json

@typescript-bot
Copy link
Collaborator

@jakebailey
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 62,153 62,153 ~ ~ ~ p=1.000 n=6
Types 50,242 50,242 ~ ~ ~ p=1.000 n=6
Memory used 193,025k (± 0.74%) 192,906k (± 0.75%) ~ 192,286k 195,859k p=0.173 n=6
Parse Time 1.31s (± 0.57%) 1.29s (± 1.44%) ~ 1.27s 1.31s p=0.149 n=6
Bind Time 0.71s 0.71s ~ ~ ~ p=1.000 n=6
Check Time 9.55s (± 0.24%) 9.56s (± 0.33%) ~ 9.53s 9.62s p=0.745 n=6
Emit Time 2.73s (± 0.51%) 2.73s (± 0.56%) ~ 2.70s 2.74s p=1.000 n=6
Total Time 14.30s (± 0.19%) 14.29s (± 0.21%) ~ 14.25s 14.33s p=0.872 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 165 🔻+158 (+2,257.14%) ~ ~ p=0.001 n=6
Symbols 945,757 945,757 ~ ~ ~ p=1.000 n=6
Types 410,045 410,051 +6 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 1,222,490k (± 0.00%) 1,222,707k (± 0.00%) +217k (+ 0.02%) 1,222,685k 1,222,724k p=0.005 n=6
Parse Time 6.64s (± 0.53%) 6.64s (± 0.44%) ~ 6.59s 6.68s p=0.683 n=6
Bind Time 1.87s (± 0.29%) 1.86s (± 0.22%) ~ 1.85s 1.86s p=0.054 n=6
Check Time 31.04s (± 0.18%) 31.12s (± 0.32%) ~ 31.00s 31.28s p=0.230 n=6
Emit Time 14.93s (± 0.20%) 15.03s (± 0.51%) +0.10s (+ 0.65%) 14.95s 15.13s p=0.013 n=6
Total Time 54.48s (± 0.11%) 54.63s (± 0.26%) ~ 54.47s 54.77s p=0.064 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 21 🔻+21 (+ ∞%) ~ ~ p=0.001 n=6
Symbols 2,487,631 2,487,631 ~ ~ ~ p=1.000 n=6
Types 1,012,953 1,012,953 ~ ~ ~ p=1.000 n=6
Memory used 2,493,490k (± 0.00%) 2,493,531k (± 0.00%) ~ 2,493,514k 2,493,569k p=0.128 n=6
Parse Time 9.24s (± 0.31%) 9.25s (± 0.43%) ~ 9.20s 9.32s p=0.369 n=6
Bind Time 2.19s (± 0.45%) 2.19s (± 0.47%) ~ 2.17s 2.20s p=0.788 n=6
Check Time 75.73s (± 0.46%) 75.69s (± 0.36%) ~ 75.40s 75.99s p=1.000 n=6
Emit Time 0.28s (± 2.67%) 0.28s (± 3.53%) ~ 0.27s 0.29s p=0.554 n=6
Total Time 87.44s (± 0.43%) 87.41s (± 0.32%) ~ 87.13s 87.69s p=0.810 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 256 🔻+256 (+ ∞%) ~ ~ p=0.001 n=6
Symbols 1,229,254 1,755,148 🔻+525,894 (+42.78%) ~ ~ p=0.001 n=6
Types 263,996 264,508 +512 (+ 0.19%) ~ ~ p=0.001 n=6
Memory used 2,408,667k (± 6.03%) 6,423,223k (± 1.35%) 🔻+4,014,556k (+166.67%) 6,387,249k 6,600,145k p=0.005 n=6
Parse Time 4.98s (± 0.99%) 9.91s (± 0.30%) 🔻+4.93s (+98.93%) 9.85s 9.94s p=0.005 n=6
Bind Time 1.88s (± 1.50%) 3.51s (± 1.04%) 🔻+1.63s (+86.88%) 3.47s 3.56s p=0.005 n=6
Check Time 34.48s (± 0.44%) 34.33s (± 0.60%) ~ 33.97s 34.48s p=0.093 n=6
Emit Time 3.32s (± 1.64%) 3.34s (± 0.99%) ~ 3.30s 3.38s p=0.422 n=6
Total Time 44.68s (± 0.25%) 51.11s (± 0.44%) 🔻+6.44s (+14.41%) 50.82s 51.38s p=0.005 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 256 🔻+256 (+ ∞%) ~ ~ p=0.001 n=6
Symbols 1,229,254 1,755,148 🔻+525,894 (+42.78%) ~ ~ p=0.001 n=6
Types 263,996 264,508 +512 (+ 0.19%) ~ ~ p=0.001 n=6
Memory used 2,600,727k (±11.39%) 6,526,378k (± 2.68%) 🔻+3,925,651k (+150.94%) 6,454,476k 6,883,610k p=0.005 n=6
Parse Time 7.85s (± 1.69%) 15.28s (± 0.63%) 🔻+7.43s (+94.61%) 15.16s 15.41s p=0.005 n=6
Bind Time 2.52s (± 1.74%) 4.88s (± 0.27%) 🔻+2.36s (+93.46%) 4.86s 4.89s p=0.005 n=6
Check Time 50.86s (± 0.74%) 50.55s (± 0.82%) ~ 50.29s 51.39s p=0.128 n=6
Emit Time 5.05s (± 3.10%) 5.01s (± 0.39%) ~ 4.99s 5.04s p=0.687 n=6
Total Time 66.29s (± 0.59%) 75.72s (± 0.58%) 🔻+9.43s (+14.23%) 75.43s 76.61s p=0.005 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 65 🔻+65 (+ ∞%) ~ ~ p=0.001 n=6
Symbols 256,697 256,699 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 105,545 105,545 ~ ~ ~ p=1.000 n=6
Memory used 428,841k (± 0.06%) 429,074k (± 0.02%) ~ 428,997k 429,234k p=0.066 n=6
Parse Time 3.39s (± 0.57%) 3.37s (± 0.67%) ~ 3.33s 3.40s p=0.120 n=6
Bind Time 1.31s (± 1.24%) 1.31s (± 1.18%) ~ 1.29s 1.33s p=0.743 n=6
Check Time 18.06s (± 0.45%) 18.11s (± 0.32%) ~ 18.04s 18.18s p=0.421 n=6
Emit Time 1.64s (± 1.20%) 1.64s (± 0.32%) ~ 1.63s 1.64s p=0.560 n=6
Total Time 24.40s (± 0.36%) 24.42s (± 0.19%) ~ 24.36s 24.47s p=0.688 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 35 97 🔻+62 (+177.14%) ~ ~ p=0.001 n=6
Symbols 225,018 225,018 ~ ~ ~ p=1.000 n=6
Types 94,245 94,246 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 370,193k (± 0.04%) 370,322k (± 0.02%) ~ 370,232k 370,468k p=0.109 n=6
Parse Time 3.45s (± 0.92%) 3.44s (± 0.96%) ~ 3.40s 3.49s p=0.630 n=6
Bind Time 1.91s (± 0.91%) 1.92s (± 0.79%) ~ 1.89s 1.93s p=1.000 n=6
Check Time 19.32s (± 0.13%) 19.33s (± 0.37%) ~ 19.28s 19.45s p=0.627 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.68s (± 0.18%) 24.69s (± 0.36%) ~ 24.61s 24.81s p=0.873 n=6
vscode - node (v18.15.0, x64)
Errors 0 291 🔻+291 (+ ∞%) ~ ~ p=0.001 n=6
Symbols 2,995,222 2,995,222 ~ ~ ~ p=1.000 n=6
Types 1,032,050 1,032,066 +16 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 3,120,584k (± 0.00%) 3,120,808k (± 0.00%) +224k (+ 0.01%) 3,120,684k 3,120,946k p=0.005 n=6
Parse Time 13.80s (± 0.31%) 13.83s (± 0.31%) ~ 13.77s 13.90s p=0.325 n=6
Bind Time 4.31s (± 2.24%) 4.31s (± 1.94%) ~ 4.27s 4.48s p=0.934 n=6
Check Time 79.38s (± 0.21%) 79.31s (± 0.34%) ~ 78.94s 79.70s p=0.521 n=6
Emit Time 20.45s (± 0.76%) 20.34s (± 0.41%) ~ 20.24s 20.46s p=0.199 n=6
Total Time 117.94s (± 0.26%) 117.78s (± 0.28%) ~ 117.22s 118.15s p=0.298 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 271,703 271,703 ~ ~ ~ p=1.000 n=6
Types 110,714 110,714 ~ ~ ~ p=1.000 n=6
Memory used 417,654k (± 0.01%) 417,687k (± 0.01%) ~ 417,592k 417,744k p=0.173 n=6
Parse Time 3.87s (± 0.75%) 3.87s (± 0.53%) ~ 3.85s 3.90s p=0.935 n=6
Bind Time 1.70s (± 0.86%) 1.69s (± 1.53%) ~ 1.65s 1.72s p=0.870 n=6
Check Time 16.90s (± 0.29%) 16.99s (± 0.35%) +0.10s (+ 0.57%) 16.92s 17.09s p=0.016 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 22.47s (± 0.33%) 22.56s (± 0.35%) ~ 22.45s 22.66s p=0.109 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 1 🔻+1 (+ ∞%) ~ ~ p=0.001 n=6
Symbols 538,614 538,614 ~ ~ ~ p=1.000 n=6
Types 176,536 176,544 +8 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 481,412k (± 0.00%) 481,454k (± 0.01%) ~ 481,392k 481,519k p=0.229 n=6
Parse Time 3.38s (± 0.61%) 3.39s (± 0.57%) ~ 3.36s 3.42s p=0.805 n=6
Bind Time 1.24s (± 1.32%) 1.26s (± 0.60%) ~ 1.25s 1.27s p=0.150 n=6
Check Time 17.98s (± 0.37%) 18.00s (± 0.23%) ~ 17.95s 18.06s p=0.627 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 22.61s (± 0.37%) 22.65s (± 0.20%) ~ 22.59s 22.71s p=0.574 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/59559/merge:

Something interesting changed - please have a look.

Details

ag-grid/ag-grid

31 of 110 projects failed to build with the old tsc and were ignored

enterprise-modules/viewport-row-model/tsconfig.watch.json

enterprise-modules/viewport-row-model/tsconfig.types.watch.json

enterprise-modules/status-bar/tsconfig.watch.json

enterprise-modules/status-bar/tsconfig.types.watch.json

enterprise-modules/sparklines/tsconfig.watch.json

enterprise-modules/sparklines/tsconfig.types.watch.json

enterprise-modules/side-bar/tsconfig.watch.json

enterprise-modules/side-bar/tsconfig.types.watch.json

enterprise-modules/set-filter/tsconfig.watch.json

enterprise-modules/set-filter/tsconfig.types.watch.json

  • error TS2367: This comparison appears to be unintentional because the types '(ColDef<any, any> | ColGroupDef<any>)[]' and 'undefined' have no overlap.
    • [community-modules/core/src/columns/columnFactory.ts#L528](https://github.com/
      :error: Truncated - see log for full output :error:

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

ajv-validator/ajv

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

apollographql/apollo-client

2 of 12 projects failed to build with the old tsc and were ignored

tsconfig.json

baidu/amis

4 of 5 projects failed to build with the old tsc and were ignored

packages/amis-formula/tsconfig-for-declaration.json

cheeriojs/cheerio

2 of 3 projects failed to build with the old tsc and were ignored

tsconfig.typedoc.json

  • error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.

codex-team/editor.js

3 of 5 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'number' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.

compiler-explorer/compiler-explorer

4 of 6 projects failed to build with the old tsc and were ignored

static/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'IEditorMouseEvent' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'IMouseTarget' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types '{ new (callback: MutationCallback): MutationObserver; prototype: MutationObserver; }' and 'undefined' have no overlap.

continuedev/continue

8 of 9 projects failed to build with the old tsc and were ignored

binary/tsconfig.json

darkreader/darkreader

1 of 5 projects failed to build with the old tsc and were ignored

tests/unit/tsconfig.json

src/tsconfig.json

date-fns/date-fns

2 of 4 projects failed to build with the old tsc and were ignored

tsconfig.lib.json

tsconfig.json

desktop/desktop

1 of 5 projects failed to build with the old tsc and were ignored

tsconfig.json

script/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'readonly string[]' and 'undefined' have no overlap.

dubinc/dub

2 of 4 projects failed to build with the old tsc and were ignored

packages/utils/tsconfig.json

faker-js/faker

1 of 3 projects failed to build with the old tsc and were ignored

tsconfig.build.json

FaridSafi/react-native-gifted-chat

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types '((props: Omit<AvatarProps<TMessage>, "renderAvatar">) => ReactNode) | undefined' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'string | number | renderFunction | undefined' and 'null' have no overlap.

flatpickr/flatpickr

3 of 4 projects failed to build with the old tsc and were ignored

tsconfig.declarations.json

FlowiseAI/Flowise

1 of 2 projects failed to build with the old tsc and were ignored

packages/components/tsconfig.json

formatjs/formatjs

27 of 35 projects failed to build with the old tsc and were ignored

packages/intl-segmenter/tsconfig.json

packages/intl-numberformat/tsconfig.json

packages/intl-enumerator/tsconfig.json

packages/eslint-plugin-formatjs/tsconfig.json

packages/ecma402-abstract/tsconfig.json

FormidableLabs/victory

24 of 63 projects failed to build with the old tsc and were ignored

packages/victory-tooltip/tsconfig.json

packages/victory-tooltip/tsconfig.build.json

packages/victory-box-plot/tsconfig.json

packages/victory-box-plot/tsconfig.build.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

FuelLabs/fuels-ts

34 of 53 projects failed to build with the old tsc and were ignored

packages/errors/tsconfig.json

packages/errors/tsconfig.dts.json

packages/abi-coder/tsconfig.dts.json

glideapps/quicktype

8 of 9 projects failed to build with the old tsc and were ignored

packages/quicktype-typescript-input/tsconfig.json

google/blockly

2 of 3 projects failed to build with the old tsc and were ignored

tsconfig.json

graphile/crystal

6 of 11 projects failed to build with the old tsc and were ignored

grafast/grafast/tsconfig.test.json

graphql/graphiql

9 of 15 projects failed to build with the old tsc and were ignored

packages/graphiql-react/tsconfig.json

packages/graphiql-react/tsconfig.cjs.json

heyxyz/hey

1 of 16 projects failed to build with the old tsc and were ignored

packages/image-cropper/tsconfig.json

apps/web/tsconfig.json

honojs/hono

5 of 6 projects failed to build with the old tsc and were ignored

tsconfig.json

hotwired/stimulus

tsconfig.test.json

tsconfig.json

immutable-js/immutable-js

1 of 4 projects failed to build with the old tsc and were ignored

website/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'boolean' and 'undefined' have no overlap.

infinitered/ignite

1 of 2 projects failed to build with the old tsc and were ignored

boilerplate/tsconfig.json

inversify/InversifyJS

2 of 5 projects failed to build with the old tsc and were ignored

src/tsconfig-es6.json

src/tsconfig-es.json

src/tsconfig-amd.json

ionic-team/ionic-framework

19 of 20 projects failed to build with the old tsc and were ignored

core/tsconfig.json

James-Yu/LaTeX-Workshop

1 of 4 projects failed to build with the old tsc and were ignored

tsconfig.json

tsconfig.eslint.viewer.json

viewer/tsconfig.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

javascript-obfuscator/javascript-obfuscator

tsconfig.json

test/tsconfig.test.json

src/tsconfig.typings.json

src/tsconfig.browser.json

jhipster/generator-jhipster

1 of 3 projects failed to build with the old tsc and were ignored

tsconfig.types.json

tsconfig.json

jquense/yup

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'ISchema<any, any, any, any>' and 'undefined' have no overlap.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

jupyterlab/jupyterlab

46 of 59 projects failed to build with the old tsc and were ignored

packages/ui-components/examples/simple-windowed-list/tsconfig.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

konvajs/konva

tsconfig.json

labring/FastGPT

3 of 8 projects failed to build with the old tsc and were ignored

packages/web/tsconfig.json

packages/plugins/tsconfig.json

mattermost/focalboard

5 of 11 projects failed to build with the old tsc and were ignored

import/trello/tsconfig.json

import/todoist/tsconfig.json

import/notion/tsconfig.json

import/nextcloud-deck/tsconfig.json

import/jira/tsconfig.json

import/asana/tsconfig.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

microsoft/vscode

4 of 53 projects failed to build with the old tsc and were ignored

src/tsconfig.tsec.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

monkeytypegame/monkeytype

3 of 6 projects failed to build with the old tsc and were ignored

backend/tsconfig.json

motion-canvas/motion-canvas

14 of 18 projects failed to build with the old tsc and were ignored

packages/core/tsconfig.json

packages/core/tsconfig.build.json

mswjs/msw

14 of 17 projects failed to build with the old tsc and were ignored

src/tsconfig.core.build.json

nextauthjs/next-auth

22 of 43 projects failed to build with the old tsc and were ignored

packages/adapter-pg/tsconfig.json

packages/adapter-fauna/tsconfig.json

nextui-org/nextui

5 of 80 projects failed to build with the old tsc and were ignored

packages/utilities/shared-utils/tsconfig.json

packages/utilities/react-utils/tsconfig.json

packages/utilities/framer-utils/tsconfig.json

packages/utilities/aria-utils/tsconfig.json

packages/hooks/use-real-shape/tsconfig.json

packages/hooks/use-pagination/tsconfig.json

packages/hooks/use-data-scroll-overflow/tsconfig.json

packages/core/system/tsconfig.json

packages/components/user/tsconfig.json

packages/components/tooltip/tsconfig.json

packages/components/tabs/tsconfig.json

packages/components/table/tsconfig.json

packages/components/switch/tsconfig.json

packages/components/spinner/tsconfig.json

packages/components/spacer/tsconfig.json

packages/components/snippet/tsconfig.json

packages/components/slider/tsconfig.json

packages/components/skeleton/tsconfig.json

packages/components/scroll-shadow/tsconfig.json

packages/components/ripple/tsconfig.json

packages/components/radio/tsconfig.json

packages/components/progress/tsconfig.json

packages/components/popover/tsconfig.json

packages/components/pagination/tsconfig.json

packages/components/navbar/tsconfig.json

packages/components/modal/tsconfig.json

packages/components/menu/tsconfig.json

packages/components/listbox/tsconfig.json

packages/components/link/tsconfig.json

packages/components/kbd/tsconfig.json

packages/components/input/tsconfig.json

packages/components/image/tsconfig.json

packages/components/dropdown/tsconfig.json

packages/components/date-picker/tsconfig.json

packages/components/date-input/tsconfig.json

packages/components/code/tsconfig.json

packages/components/chip/tsconfig.json

packages/components/checkbox/tsconfig.json

packages/components/card/tsconfig.json

packages/components/calendar/tsconfig.json

packages/components/button/tsconfig.json

packages/components/breadcrumbs/tsconfig.json

packages/components/badge/tsconfig.json

packages/components/avatar/tsconfig.json

packages/components/autocomplete/tsconfig.json

packages/components/accordion/tsconfig.json

nhn/tui.editor

4 of 9 projects failed to build with the old tsc and were ignored

plugins/code-syntax-highlight/tsconfig.json

niklasvh/html2canvas

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

openai-translator/openai-translator

tsconfig.json

pmndrs/zustand

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Partial<T>' and 'null' have no overlap.

pubkey/rxdb

8 of 11 projects failed to build with the old tsc and were ignored

tsconfig.json

config/tsconfig.types.json

puppeteer/puppeteer

7 of 14 projects failed to build with the old tsc and were ignored

tools/eslint/tsconfig.json

react-hook-form/react-hook-form

2 of 3 projects failed to build with the old tsc and were ignored

tsconfig.json

react-icons/react-icons

2 of 4 projects failed to build with the old tsc and were ignored

packages/react-icons/tsconfig.json

packages/react-icons/scripts/tsconfig.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

react-navigation/react-navigation

9 of 14 projects failed to build with the old tsc and were ignored

tsconfig.json

example/tsconfig.json

redis/node-redis

6 of 8 projects failed to build with the old tsc and were ignored

packages/client/tsconfig.json

Redocly/redoc

tsconfig.lib.json

tsconfig.json

reduxjs/redux-devtools

25 of 58 projects failed to build with the old tsc and were ignored

packages/redux-devtools-cli/tsconfig.json

packages/react-base16-styling/tsconfig.test.json

packages/react-base16-styling/tsconfig.json

reduxjs/redux-toolkit

14 of 35 projects failed to build with the old tsc and were ignored

packages/toolkit/tsconfig.json

packages/toolkit/tsconfig.build.json

reduxjs/redux

3 of 5 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'ActionCreatorsMapObject<any, any[]>' and 'null' have no overlap.

test/typescript/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'ActionCreatorsMapObject<any, any[]>' and 'null' have no overlap.

reduxjs/reselect

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Node<unknown[] | Record<string, unknown>>' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'Tag' and 'undefined' have no overlap.

typescript_test/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Node<unknown[] | Record<string, unknown>>' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'Tag' and 'undefined' have no overlap.

type-tests/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Node<unknown[] | Record<string, unknown>>' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'Tag' and 'undefined' have no overlap.

test/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Node<unknown[] | Record<string, unknown>>' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'Tag' and 'undefined' have no overlap.

docs/examples/tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Node<unknown[] | Record<string, unknown>>' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'Tag' and 'undefined' have no overlap.

refined-github/refined-github

tsconfig.json

Sairyss/domain-driven-hexagon

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'Entity<EntityProps> | undefined' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'ValueObject<T> | undefined' and 'null' have no overlap.

tsconfig.build.json

  • error TS2367: This comparison appears to be unintentional because the types 'Entity<EntityProps> | undefined' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'ValueObject<T> | undefined' and 'null' have no overlap.

shoelace-style/shoelace

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.prod.json

signalapp/Signal-Desktop

1 of 2 projects failed to build with the old tsc and were ignored

sticker-creator/tsconfig.json

sindresorhus/got

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'string | undefined' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'Error' and 'null' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; any(signals: AbortSignal[]): AbortSignal; timeout(milliseconds: number): AbortSignal; }' and 'undefined' have no overlap.

sindresorhus/ky

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.

tsconfig.dist.json

  • error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.

slab/quill

tsconfig.json

packages/quill/tsconfig.json

snabbdom/snabbdom

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

socketio/socket.io

9 of 30 projects failed to build with the old tsc and were ignored

examples/passport-jwt-example/ts/tsconfig.json

examples/passport-example/ts/tsconfig.json

strapi/strapi

80 of 121 projects failed to build with the old tsc and were ignored

packages/core/database/tsconfig.json

packages/core/database/tsconfig.eslint.json

packages/core/database/tsconfig.build.json

subquery/subql

4 of 6 projects failed to build with the old tsc and were ignored

packages/query/tsconfig.json

supabase/supabase

33 of 37 projects failed to build with the old tsc and were ignored

apps/database-new/tsconfig.json

tailwindlabs/headlessui

2 of 5 projects failed to build with the old tsc and were ignored

packages/@headlessui-vue/tsconfig.json

tinacms/tinacms

11 of 23 projects failed to build with the old tsc and were ignored

packages/@tinacms/mdx/tsconfig.json

tusen-ai/naive-ui

3 of 6 projects failed to build with the old tsc and were ignored

src/tsconfig.demo.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

ueberdosis/tiptap

3 of 8 projects failed to build with the old tsc and were ignored

demos/tsconfig.vue-3.json

demos/tsconfig.vue-2.json

demos/tsconfig.react.json

demos/tsconfig.base.json

usablica/intro.js

2 of 3 projects failed to build with the old tsc and were ignored

tsconfig.json

vadimdemedes/ink

1 of 2 projects failed to build with the old tsc and were ignored

tsconfig.json

  • error TS2367: This comparison appears to be unintentional because the types 'StyledChar' and 'undefined' have no overlap.
  • error TS2367: This comparison appears to be unintentional because the types 'string' and 'undefined' have no overlap.

vitest-dev/vitest

30 of 34 projects failed to build with the old tsc and were ignored

packages/vite-node/tsconfig.json

VSCodeVim/Vim

tsconfig.json

vuejs/vue

7 of 8 projects failed to build with the old tsc and were ignored

tsconfig.json

vuetifyjs/vuetify

2 of 7 projects failed to build with the old tsc and were ignored

packages/vuetify/tsconfig.json

packages/vuetify/tsconfig.dist.json

packages/vuetify/tsconfig.checks.json

web3/web3.js

58 of 66 projects failed to build with the old tsc and were ignored

scripts/changelog/tsconfig.json

youzan/vant

4 of 9 projects failed to build with the old tsc and were ignored

packages/vant-use/tsconfig.json

@RyanCavanaugh
Copy link
Member

Asking the bot for the list of breaking changes this incurs...
image

@Andarist
Copy link
Contributor Author

Andarist commented Aug 8, 2024

heh, at least it has been proven to be quite breaking 😅 so I guess now the question is if you'd be willing to pick this up as a new opt-in flag outside of the regular strict mode ;p

@kof
Copy link

kof commented Aug 8, 2024

I briefly looked over the issues the bot has found and it seems to me that it found loads of code that shouldn't be there?

@jakebailey
Copy link
Member

The first link I opened led to Effect-TS/effect#3435, so that's a good sign, but wow that's a lotta damage

@Andarist
Copy link
Contributor Author

Andarist commented Aug 9, 2024

These two are just because they don't use noUncheckedIndexAccess

"just" doesn't give this credit 😅 most people don't use this (including the compiler's code ;p). This kind of break will be the most painful but it can usually be easily refactored to typeof x === 'undefined'

@jakebailey
Copy link
Member

Yeah "just" was doing a lot of work in that sentence 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Not started
Development

Successfully merging this pull request may close these issues.

disallow comparing to null and undefined unless they are valid cases in strict null mode
5 participants