Creates a Type for a readonly array with exactly size elements, typed as
the branded FixedLengthArray instead of the structural tuple type
produced by fixedLengthTuple.
Because the length constraint lives only in the brand, the element type is
never expanded into tuple positions, which keeps type-checking cheap even
when A is a large type. Prefer this over fixedLengthTuple when A is
large; prefer fixedLengthTuple when positional element types or a literal
length are needed.
Creates a
Typefor a readonly array with exactlysizeelements, typed as the branded FixedLengthArray instead of the structural tuple type produced byfixedLengthTuple.Because the length constraint lives only in the brand, the element type is never expanded into tuple positions, which keeps type-checking cheap even when
Ais a large type. Prefer this overfixedLengthTuplewhenAis large; preferfixedLengthTuplewhen positional element types or a literallengthare needed.