(column: Column)
| 8 | } |
| 9 | |
| 10 | export function isWithEnum(column: Column): column is typeof column & { enumValues: [string, ...string[]] } { |
| 11 | return 'enumValues' in column && Array.isArray(column.enumValues) && column.enumValues.length > 0; |
| 12 | } |
| 13 | |
| 14 | export const isPgEnum: (entity: any) => entity is PgEnum<[string, ...string[]]> = isWithEnum as any; |
| 15 |