kysely
    Preparing search index...

    Type Alias Selectable<R>

    Selectable: DrainOuterGeneric<
        { [K in NonNeverSelectKeys<R>]: SelectType<R[K]> },
    >

    Given a table interface, extracts the select type from all ColumnType types.

    interface PersonTable {
    id: Generated<number>
    first_name: string
    modified_at: ColumnType<Date, string, never>
    }

    type Person = Selectable<PersonTable>
    // {
    // id: number,
    // first_name: string
    // modified_at: Date
    // }

    Type Parameters

    • R