mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
07b07228c33f3609d4576fb1af5f7ebbe1205553
We support any super type of anything that we can serialize. Meaning
that as long as the Type that's passed through is less precise, it means
that we can encoded it as any subtype and therefore the incoming type
doesn't have to be the subtype in that case. Basically, as long as
you're only passing through an `Iterable<T>` in TypeScript, then you can
pass any `Iterable<T>` and we'll treat it as an array.
For example we support Promises *and* Thenables but both are encoded as
Promises.
We support Arrays and since Arrays are also Iterables, we can support
Iterables.
For @wongmjane
DiffTrain build for [106ea1c584](https://github.com/facebook/react/commit/106ea1c584d811eda5d328a5f7f856a738c2ca24)
Please do not delete this branch
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%