Skip to content

Comments

Fix ArrayField initialValue type to accept arrays#490

Open
cp89cyber wants to merge 1 commit intoteslamotors:masterfrom
cp89cyber:fix/arrayfield-initialvalue-tuple-to-array
Open

Fix ArrayField initialValue type to accept arrays#490
cp89cyber wants to merge 1 commit intoteslamotors:masterfrom
cp89cyber:fix/arrayfield-initialvalue-tuple-to-array

Conversation

@cp89cyber
Copy link

Summary

  • widen ArrayField.initialValue to unknown[] so multi-item inits match runtime behavior
  • add regression test coverage showing valid multi-item arrays, single-item arrays, and omission continue to type-check while non-arrays error

Testing

  • Not run (not requested)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant