-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Proposal: add type guard keyIn
#47
Comments
By "partially", do you mean that it only gets the "own" keys and you want any key? Maybe we should name the utility |
Additionally Is there a need to improve |
How would it infer the "type of property" if that info not already there? |
I'm always happy to make any of the methods more strongly-typed whenever possible. |
It seems impossible yet. I guess he described it as "partially" for this reason. |
Let's limit the discussion to microsoft/TypeScript#43284 , I'll open a new issue for microsoft/TypeScript#21732 |
I'm ok with adding |
Usage
Playground
See microsoft/TypeScript#43284
Also, see microsoft/TypeScript#21732 I think our
objectHasOwn
has partially done the job.The text was updated successfully, but these errors were encountered: