@@ -3,22 +3,13 @@ import type {ZeroColumnType, ZeroTypeToTypescriptType} from './drizzle-to-zero';
33import type { ColumnsConfig } from './tables' ;
44
55type ArrayLikeDrizzleConstraint =
6- | 'basecolumn'
7- | 'halfvector'
8- | 'int64vector'
9- | 'vector' ;
6+ 'basecolumn' | 'halfvector' | 'int64vector' | 'vector' ;
107
118type DateLikeDrizzleStringConstraint =
12- | 'date'
13- | 'datetime'
14- | 'time'
15- | 'timestamp' ;
9+ 'date' | 'datetime' | 'time' | 'timestamp' ;
1610
1711type NumberLikeDrizzleStringConstraint =
18- | 'int64'
19- | 'numeric'
20- | 'uint64'
21- | 'unumeric' ;
12+ 'int64' | 'numeric' | 'uint64' | 'unumeric' ;
2213
2314type StringLikeDrizzleConstraint = 'enum' | 'uuid' ;
2415
@@ -58,9 +49,8 @@ type ResolveNullableStringLikeCustomType<TData> = [
5849] extends [ never ]
5950 ? string
6051 : Exclude < TData , Nullish > extends string
61- ?
62- | PreserveNarrowType < Exclude < TData , Nullish > , string , string >
63- | Extract < TData , Nullish >
52+ ? | PreserveNarrowType < Exclude < TData , Nullish > , string , string >
53+ | Extract < TData , Nullish >
6454 : string ;
6555
6656type ResolveStringLikeCustomType < TData > =
@@ -71,9 +61,8 @@ type ResolveNullableBooleanLikeCustomType<TData> = [
7161] extends [ never ]
7262 ? boolean
7363 : Exclude < TData , Nullish > extends boolean
74- ?
75- | PreserveNarrowType < Exclude < TData , Nullish > , boolean , boolean >
76- | Extract < TData , Nullish >
64+ ? | PreserveNarrowType < Exclude < TData , Nullish > , boolean , boolean >
65+ | Extract < TData , Nullish >
7766 : boolean ;
7867
7968type ResolveBooleanLikeCustomType < TData > =
@@ -273,9 +262,7 @@ export type ResolveColumnCustomType<TColumn> =
273262 : NormalizedColumnDataType < TColumn > extends 'boolean'
274263 ? ResolveBooleanLikeCustomType < ColumnData < TColumn > >
275264 : NormalizedColumnDataType < TColumn > extends
276- | 'bigint'
277- | 'date'
278- | 'number'
265+ 'bigint' | 'date' | 'number'
279266 ? ResolveNumberLikeCustomType < ColumnData < TColumn > >
280267 : unknown ;
281268
0 commit comments