UniqueArray<T>: T extends readonly [infer X, ...(infer Rest)] ? InArray<Rest, X> extends true ? ["Encountered value with duplicates:", X] : readonly [X, ...UniqueArray<Rest>] : T

Type Parameters

  • T