drizzle-arktype 0.1.3-08bb2d5 → 0.1.3-2d0c9fd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column.d.cts +2 -2
- package/column.d.mts +2 -2
- package/column.d.ts +2 -2
- package/column.types.d.cts +3 -3
- package/column.types.d.mts +3 -3
- package/column.types.d.ts +3 -3
- package/index.cjs +218 -207
- package/index.cjs.map +1 -1
- package/index.mjs +219 -208
- package/index.mjs.map +1 -1
- package/package.json +2 -2
- package/schema.types.d.cts +4 -4
- package/schema.types.d.mts +4 -4
- package/schema.types.d.ts +4 -4
- package/utils.d.cts +7 -3
- package/utils.d.mts +7 -3
- package/utils.d.ts +7 -3
package/utils.d.cts
CHANGED
|
@@ -9,8 +9,12 @@ export declare function isWithEnum(column: Column): column is typeof column & {
|
|
|
9
9
|
export declare const isPgEnum: (entity: any) => entity is PgEnum<[string, ...string[]]>;
|
|
10
10
|
type Literal = type.infer<typeof literalSchema>;
|
|
11
11
|
export type Json = Literal | Record<string, any> | any[];
|
|
12
|
-
export type ColumnIsGeneratedAlwaysAs<TColumn> = TColumn extends Column ? TColumn['_']['identity'] extends 'always' ? true : TColumn['_']
|
|
13
|
-
|
|
14
|
-
}
|
|
12
|
+
export type ColumnIsGeneratedAlwaysAs<TColumn> = TColumn extends Column ? TColumn['_']['identity'] extends 'always' ? true : TColumn['_'] extends {
|
|
13
|
+
generated: undefined;
|
|
14
|
+
} ? false : TColumn['_'] extends {
|
|
15
|
+
generated: {
|
|
16
|
+
type: 'byDefault';
|
|
17
|
+
};
|
|
18
|
+
} ? false : true : false;
|
|
15
19
|
export type GetSelection<T extends SelectedFieldsFlat<Column> | Table | View> = T extends Table ? T['_']['columns'] : T extends View ? T['_']['selectedFields'] : T;
|
|
16
20
|
export {};
|
package/utils.d.mts
CHANGED
|
@@ -9,8 +9,12 @@ export declare function isWithEnum(column: Column): column is typeof column & {
|
|
|
9
9
|
export declare const isPgEnum: (entity: any) => entity is PgEnum<[string, ...string[]]>;
|
|
10
10
|
type Literal = type.infer<typeof literalSchema>;
|
|
11
11
|
export type Json = Literal | Record<string, any> | any[];
|
|
12
|
-
export type ColumnIsGeneratedAlwaysAs<TColumn> = TColumn extends Column ? TColumn['_']['identity'] extends 'always' ? true : TColumn['_']
|
|
13
|
-
|
|
14
|
-
}
|
|
12
|
+
export type ColumnIsGeneratedAlwaysAs<TColumn> = TColumn extends Column ? TColumn['_']['identity'] extends 'always' ? true : TColumn['_'] extends {
|
|
13
|
+
generated: undefined;
|
|
14
|
+
} ? false : TColumn['_'] extends {
|
|
15
|
+
generated: {
|
|
16
|
+
type: 'byDefault';
|
|
17
|
+
};
|
|
18
|
+
} ? false : true : false;
|
|
15
19
|
export type GetSelection<T extends SelectedFieldsFlat<Column> | Table | View> = T extends Table ? T['_']['columns'] : T extends View ? T['_']['selectedFields'] : T;
|
|
16
20
|
export {};
|
package/utils.d.ts
CHANGED
|
@@ -9,8 +9,12 @@ export declare function isWithEnum(column: Column): column is typeof column & {
|
|
|
9
9
|
export declare const isPgEnum: (entity: any) => entity is PgEnum<[string, ...string[]]>;
|
|
10
10
|
type Literal = type.infer<typeof literalSchema>;
|
|
11
11
|
export type Json = Literal | Record<string, any> | any[];
|
|
12
|
-
export type ColumnIsGeneratedAlwaysAs<TColumn> = TColumn extends Column ? TColumn['_']['identity'] extends 'always' ? true : TColumn['_']
|
|
13
|
-
|
|
14
|
-
}
|
|
12
|
+
export type ColumnIsGeneratedAlwaysAs<TColumn> = TColumn extends Column ? TColumn['_']['identity'] extends 'always' ? true : TColumn['_'] extends {
|
|
13
|
+
generated: undefined;
|
|
14
|
+
} ? false : TColumn['_'] extends {
|
|
15
|
+
generated: {
|
|
16
|
+
type: 'byDefault';
|
|
17
|
+
};
|
|
18
|
+
} ? false : true : false;
|
|
15
19
|
export type GetSelection<T extends SelectedFieldsFlat<Column> | Table | View> = T extends Table ? T['_']['columns'] : T extends View ? T['_']['selectedFields'] : T;
|
|
16
20
|
export {};
|