Skip to content

Add IsOptionalKeyOf, IsReadonlyKeyOf, IsRequiredKeyOf, and IsWritableKeyOf types #1189

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

benzaria
Copy link
Contributor

@benzaria benzaria commented Jun 15, 2025

adding object/array keys type guards Is*KeyOf to check the state/modifier of key(s).

@benzaria benzaria closed this Jun 15, 2025
@benzaria benzaria deleted the is-optional-key-of branch June 15, 2025 17:22
@benzaria benzaria restored the is-optional-key-of branch June 15, 2025 17:23
@benzaria benzaria reopened this Jun 15, 2025
@benzaria benzaria requested a review from sindresorhus June 17, 2025 01:13
Copy link
Collaborator

@som-sm som-sm left a comment

Choose a reason for hiding this comment

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

Please create separate files for new types.

@som-sm
Copy link
Collaborator

som-sm commented Jun 17, 2025

All of these new types should also be exported from index.d.ts.

@benzaria benzaria requested a review from som-sm June 18, 2025 22:47
@benzaria benzaria force-pushed the is-optional-key-of branch from 3633a1f to 88bb0aa Compare June 18, 2025 23:24
@benzaria
Copy link
Contributor Author

Ready !

@benzaria benzaria force-pushed the is-optional-key-of branch from 00d678e to 6592b9c Compare June 19, 2025 00:27
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