Skip to content

Commit 2d80979

Browse files
committed
chore: add commit
1 parent 904caec commit 2d80979

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/array-flat.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ T extends UnknownArray
7777
: Depth extends 0
7878
? [...Result, ...T]
7979
: number extends T['length']
80+
// Handle non-fixed length arrays
8081
? [
8182
...Result,
8283
...(
@@ -91,6 +92,7 @@ T extends UnknownArray
9192
: T
9293
),
9394
]
95+
// Handle fixed length arrays
9496
: T extends readonly [infer ArrayItem, ...infer Last]
9597
? ArrayItem extends UnknownArray
9698
? InternalArrayFlat<Last, Depth, Options, [...Result, ...InternalArrayFlat<ArrayItem, Subtract<Depth, 1>, Options>]>

0 commit comments

Comments
 (0)