-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Remove nonNullUnknownType #57665
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove nonNullUnknownType #57665
Conversation
@typescript-bot test top200 @typescript-bot perf test this faster |
@jakebailey Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Something interesting changed - please have a look. Details
|
Hey @jakebailey, the results of running the DT tests are ready. |
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
Oh no - I hope it's not distributive like |
It's not :D although internally such a type kinda exists ( |
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
@typescript-bot user test this |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
@jakebailey Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
(I intentionally merged before the above result; I was just testing that a recent change in the error deltas repo was working.) |
As far as I can tell (and test), this
unknown
variant is no longer needed. Probably due to the changes to how unknown is more or less{} | undefined | null
.This effectively finishes reverting #45575; most of it was removed in #49119 (as expected). By the numbers, #45575 added the declaration of and 5 uses of
nonNullUnknownType
, #49119 removed 3 references, and this PR removes the 2 remaining references and declaration.