Convert all unknown[] types in an array type to never
unknown[]
never
The (...? true: false) extends true prevents it filtering out any[], the only other type that unknown[] extends.
(...? true: false) extends true
any[]
Generated using TypeDoc
Convert all
unknown[]
types in an array type tonever
The
(...? true: false) extends true
prevents it filtering outany[]
, the only other type thatunknown[]
extends.