psalm icon indicating copy to clipboard operation
psalm copied to clipboard

[New Feature] Extend ArrayShape with ArrayShape

Open marartner opened this issue 6 months ago • 1 comments

There currently does not seem to be a working way to extend a known array shape with additional keys, other than redefining it entirely. "..." can be used to signal that there may be additional keys, but not which:

I would propose this solution:

https://psalm.dev/r/3afa0bf3db

marartner avatar Jul 30 '24 11:07 marartner