UnknownMembersToNever<T>: T extends [infer H, ...(infer R)]
    ? [[unknown] extends [H]
        ? never
        : H, ...UnknownMembersToNever<R>]
    : T

Type Parameters

  • T