let x: number[] = Array.from(
[true, true, false]
)
Today, this code type checks because Array.from<T, U> takes an optional mapfn of type (el: T, index: number) => U.
When U is not inferred from the mapfn, it is instead inferred from the contextual type.