Skip to content
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

Allow readonly Stringifiable[] in StringifiableRecord #291

Merged
merged 1 commit into from Nov 5, 2020

Conversation

tpict
Copy link
Contributor

@tpict tpict commented Nov 4, 2020

Since the first argument to stringify isn't mutated, readonly arrays should be allowed as record values. This is a backwards-compatible change, you'll still be able to pass a mutable array if you like.

@sindresorhus sindresorhus changed the title Allow readonly Stringifiable[] in StringifiableRecord Allow readonly Stringifiable[] in StringifiableRecord Nov 5, 2020
@sindresorhus sindresorhus merged commit 71d84b7 into sindresorhus:master Nov 5, 2020
@tpict
Copy link
Contributor Author

tpict commented Nov 5, 2020

thank you!

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.

None yet

2 participants