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

Add usage tip for .choices() #38

Merged
merged 2 commits into from
Mar 4, 2023
Merged

Add usage tip for .choices() #38

merged 2 commits into from
Mar 4, 2023

Conversation

shadowspawn
Copy link
Contributor

Add a usage tip for using const assertion with .choices().

I suspect the "const assertion" and type narrowing is a sightly more advanced behaviour in TypeScript that many people won't know about. I certainly had to go read about it the first time I came across it.

Copy link
Contributor

@abetomo abetomo left a comment

Choose a reason for hiding this comment

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

👍

@abetomo abetomo changed the base branch from main to develop March 4, 2023 06:51
@shadowspawn shadowspawn added the pending release On a branch for eventual release, but not yet merged to main. label Mar 4, 2023
@shadowspawn shadowspawn merged commit 91483a2 into develop Mar 4, 2023
@shadowspawn shadowspawn deleted the feature/choices-tip branch March 4, 2023 07:14
@shadowspawn shadowspawn removed the pending release On a branch for eventual release, but not yet merged to main. label Nov 12, 2023
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.

2 participants