-
-
Notifications
You must be signed in to change notification settings - Fork 230
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 mixed type #81
Add mixed type #81
Changes from 7 commits
ded5b3d
745cf68
627acdf
f7cc33a
5adbeb6
d08c702
faa6735
7093af7
f78572b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ Issues can be funded by anyone and the money will be transparently distributed t | |
|
||
* [`Primitive`](#primitive) | ||
* [`Falsey`](#falsey) | ||
* [`mixed`](#mixed) | ||
|
||
## Union operators | ||
|
||
|
@@ -138,6 +139,13 @@ Type representing falsey values in TypeScript: `null | undefined | false | 0 | ' | |
|
||
[⇧ back to top](#table-of-contents) | ||
|
||
### mixed | ||
|
||
An arbitrary type that could be anything (same as `unknown`) | ||
https://flow.org/en/docs/types/mixed | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On line 145, please add a link to the flow docs so it looks consistent with all the remaining flow types There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It still has wrong formatting, not showing below the description, please check how it's done in other types There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hint: two spaces at the end of prev line |
||
[⇧ back to top](#table-of-contents) | ||
|
||
### `SetIntersection<A, B>` (same as Extract) | ||
|
||
Set intersection of given union types `A` and `B` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move it as the first item in "Flow's Utility Types" section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it count as utility type tho?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only for Flow's migration, nobody using primarily TS would ever want to use it