Given a table interface, extracts the insert type from all ColumnType types.
interface PersonTable { id: Generated<number> first_name: string modified_at: ColumnType<Date, string, never>}type InsertablePerson = Insertable<PersonTable>// {// id?: number,// first_name: string// modified_at: string// } Copy
interface PersonTable { id: Generated<number> first_name: string modified_at: ColumnType<Date, string, never>}type InsertablePerson = Insertable<PersonTable>// {// id?: number,// first_name: string// modified_at: string// }
Generated using TypeDoc
Given a table interface, extracts the insert type from all ColumnType types.
Examples