-
-
Notifications
You must be signed in to change notification settings - Fork 152
Add examples in the documentation #148
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
Conversation
|
Amazing, thank you so much Benoit 🥳 |
|
I will merge this in the upcoming version |
|
My pleasure! I'll continue as soon as I can 😌 |
Hi! Why you want to wait major version update? |
|
I'm dropping support for version 8, as we continue to improve as TS introduces new features and concepts. I'm planning to take a few days to do this (working on |
|
Which is very soon, waiting for upstream ts 4.1. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
some activity |
|
Merged! Thank you! |
🎁 Pull Request
tstfolder)npm testFixes
Nothing.
Why have you made changes?
To improve the documentation and hopefully bring more people to the joys of type-level programming.
What changes have you made?
I added examples in the documentation blocks of some types.
I'll probably add more examples in the near future, I want to make sure these kinds of changes are welcome!
What tests have you updated?
None.
Is there any breaking changes?
No.
Anything else worth mentioning?
While playing with
L.CompulsoryKeys, I got some strange results:I was expecting to get
0 | 1 | 2instead. I also tested with[1, 2, 3?]and got the exact same result, while expecting0 | 1. Nonetheless I added the example, but I'm pretty sure the result is wrong, and there are no tests for this mapped type (there's a "cf. O.CompulsoryKeys" in thetst/List.tsfile).Also, I didn't follow the 7th step of the contributing guide (the one that mentions
npm run release -- --no-tags) since it's only about documentation.