-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(types): correct ArrayOptions
#6737
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated May 30, 2024 10:38 AM (UTC)
|
ArrayOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Christian! This looks great, and does more closely reflect the underlying functionality.
Instead of removing direction
, please can you mark is as deprecated? Removing it is technically a breaking change to the API, even though it doesn't actually do anything.
74748cc
to
dacdb0b
Compare
Thanks for the feedback! I've deprecated the option now, instead of removing it. |
dacdb0b
to
1bdfa40
Compare
- Removed the comment about `layout` since it's confusing/wrong. The `grid` option also works for a string array. - Added `list` as a valid `layout` option. Even though it's the default, it feels weird that you can't specify it manually. - Deprecated `direction` since it doesn't do anything anymore.
1bdfa40
to
85d5365
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
Thank you! Feel free to merge it on my behalf. I don't have permissions to do so. |
layout
since it's confusing/wrong. Thegrid
option also works for a string array.list
as a validlayout
option. Even though it's the default, it feels weird that you can't specify it manually.direction
since it doesn't seem to do anything. Maybe it's old?I realise that (a) this might be a bold change and (b) I might have no idea what I'm doing since I'm relatively new here, but these changes are based on my observations as I work with the Array schema type and read through https://www.sanity.io/docs/array-type