Hex Core JS
    Preparing search index...

    Type Alias ArrayOmit<T, K>

    ArrayOmit: Omit<T[0], K>[]

    Constructs a new array type from T by omitting K from the element type of T.

    Type Parameters

    • T extends any[]
    • K extends keyof T[0]
    type User = {
    id: string;
    name: string;
    }

    type Users = User[];

    ArrayOmit<Users, "id">; // Omit<User, "id">[]