Skip to content

Conversation

@michielvandergeest
Copy link
Collaborator

No description provided.

for (let i = 0; i < propLength; i++) {
const prop = props[i]
if (typeof prop === 'string') {
out[prop] = { default: undefined }
Copy link
Collaborator

@jfboeve jfboeve Apr 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these don't need the be storing objects when you're only using 1 property in them.. Or am I missing something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for backwards compatibility - the old syntax could just be an array, in the new setup we're expecting an object. This piece of code rewrites it to the expected format

@michielvandergeest michielvandergeest merged commit ca9db75 into feature/v2 Apr 30, 2025
1 check passed
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.

4 participants