TypeScript: Incorrect subject type from returning a wrapped `undefined` from `.then` #1219
Labels
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is valid to return a wrapped
undefined
. Example:cy.wrap(undefined)
orPromise.resolve(undefined)
or evency.wrap(null)
.In this case, the subject is a wrapped
undefined
instead of an unwrappedundefined
.Is this a Feature or Bug?
Bug
Current behavior:
Desired behavior:
How to reproduce:
See "Current behavior"
Test code:
See "Current behavior"
Additional Info (images, stack traces, etc)
PR is on the way
The text was updated successfully, but these errors were encountered: