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

Explain keyof before it first appears in a snippet #3243

Open
wants to merge 6 commits into
base: v2
Choose a base branch
from

Conversation

natepmay
Copy link

@natepmay natepmay commented Oct 5, 2024

In the Using Type Parameters in Generic Constraints section of the Generics chapter of the handbook, an example is introduced that uses keyof. However, the keyof operator isn't introduced until the next chapter. As a result, I was confused by the example as I was working through the handbook in sequence.

I've kept the example but briefly introduced keyof beforehand to make the example comprehensible.

@natepmay
Copy link
Author

natepmay commented Oct 5, 2024

@microsoft-github-policy-service agree

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.

1 participant