vtils

Home > utils > ConditionalArrayItem

ConditionalArrayItem type

Signature:

export declare type ConditionalArrayItem<T, K extends keyof T = never> = (IsNever<K> extends true ? T : Merge<T, {
    [k in K]: Array<ConditionalArrayItem<T, K>>;
}>) | false;

References: ConditionalArrayItem