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

omit should accept readonly arrays #429

Open
matthew-holder-revvity opened this issue Sep 23, 2024 · 0 comments
Open

omit should accept readonly arrays #429

matthew-holder-revvity opened this issue Sep 23, 2024 · 0 comments

Comments

@matthew-holder-revvity
Copy link

A common pattern for building unions of keys is to first define an as const tuple/array of them then using (typeof arr)[number] to determine the value type. Since those arrays are read-only, they cannot be used with omit.

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

No branches or pull requests

1 participant