Using T[K]
with object properties
#10906
Shira-3749
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
The
T[K]
utility type seems to work only with arrays. Are there any plans to extend the support to object properties too?https://psalm.dev/r/45dc59b014
Trying to work around this with
properties-of<T>
does not seem supported either:https://psalm.dev/r/c396e7521f
Beta Was this translation helpful? Give feedback.
All reactions