You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Get<ObjectType, PathType> extends unknown ? DefaultValue : ...here is wrong - it will always evaluate to DefaultValue because everything extends unknown. It should be changed to unknown extends Get<ObjectType, PathType> ? DefaultValue : ....
There might also be an issue with the tsd tests, they should be catching this. tsdjs/tsd#142. I don't know tsd super well but it might be worth switching to expect-type over that bug - it essentially makes every test for this particular library pass no matter what, as far as I can tell.
mmkal
added a commit
to mmkal/dot-prop
that referenced
this issue
Jan 29, 2022
"Expected" comes from the usage example in the readme and "Actual" comes from typescript's intellisense in VS Code.
The main thing I noticed is the setter and deleter don't seem to mutate the type.
I'm using
v6.0.1
of dot-prop with typescriptv4.2.4
.The text was updated successfully, but these errors were encountered: