diff --git a/source/array-tail.d.ts b/source/array-tail.d.ts index efac9c497..6ed076ba2 100644 --- a/source/array-tail.d.ts +++ b/source/array-tail.d.ts @@ -1,5 +1,3 @@ -import type {UnknownArrayOrTuple} from './internal'; - /** Extracts the type of an array or tuple minus the first element. @@ -22,4 +20,4 @@ add3(4); @category Array */ -export type ArrayTail = TArray extends readonly [unknown, ...infer Tail] ? Tail : []; +export type ArrayTail = TArray extends readonly [] ? TArray : TArray extends readonly [unknown?, ...infer Tail] ? Tail : TArray;