Type alias Updateable<R>

Updateable<R>: DrainOuterGeneric<{
    [K in UpdateKeys<R>]?: UpdateType<R[K]>
}>

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

Examples

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

type UpdateablePerson = Updateable<PersonTable>
// {
// id?: number,
// first_name?: string
// }

Type Parameters

  • R

Generated using TypeDoc