chore(types): use official NonNullable again#548
chore(types): use official NonNullable again#548Andarist wants to merge 1 commit intopmndrs:mainfrom
NonNullable again#548Conversation
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 850cb30:
|
|
Awesome thanks for tracking this @Andarist, I'll merge soon. |
|
@Andarist after checking this locally in the repo, I still got an error. |
|
Hah, this is very interesting! I've created a playground with some additional checks (here) and I'm 100% certain that this is a bug in TypeScript. I've reported it here. So this prevents you currently from using the official |
|
Indeed that's weird! Let's leave this open and I'll merge when Typescript upgrades to a new minor. Thanks! |
This reverts the change to use a custom
NonUndefined. It was introduced to workaround an issue with TS 4.8 beta:TS 4.8-beta playground
This is no longer an issue with the stable TS 4.8 though so this workaround is no longer needed:
TS 4.8.4 playground