rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
20 lines (11 loc) • 917 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [TTupleLikeOfLength](./rc-js-util.ttuplelikeoflength.md)
## TTupleLikeOfLength type
Useful for homogenous tuples of arbitrary length.
**Signature:**
```typescript
export type TTupleLikeOfLength<TItem, TLength extends number, TCounter extends number = 0, TIndexes extends number = never> = TCounter extends TLength ? TTupleLike<TIndexes, TItem, TLength> : TCounter extends 16 ? TTupleLike<number, TItem, number> : TTupleLikeOfLength<TItem, TLength, TNextInt<TCounter>, TIndexes | TCounter>;
```
**References:** [TTupleLike](./rc-js-util.ttuplelike.md)<!-- -->, [TTupleLikeOfLength](./rc-js-util.ttuplelikeoflength.md)<!-- -->, [TNextInt](./rc-js-util.tnextint.md)
## Remarks
Tuples past size of Mat4 will decay to array type for compile time reasons.