Skip to content

Commit 40e40af

Browse files
committed
fix: drizzle typing
1 parent 94bd187 commit 40e40af

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/drizzle-to-zero.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,6 @@ export const postgresTypeToZeroType = {
115115
*/
116116
export type PostgresTypeToZeroType = typeof postgresTypeToZeroType;
117117

118-
/**
119-
* Derived mapping from Postgres SQL type names to their resulting JS/TS types,
120-
* based on Zero type mapping above.
121-
*/
122-
export type PostgresTypeToTypescriptType = {
123-
[K in keyof PostgresTypeToZeroType]: ZeroTypeToTypescriptType[PostgresTypeToZeroType[K]];
124-
};
125-
126-
/**
127-
* Reference mapping guide (PG Type → schema.ts Type → JS/TS Type):
128-
* - All numeric types → number → number
129-
* - char, varchar, text, uuid → string → string
130-
* - bool → boolean → boolean
131-
* - date, timestamp, timestamptz → number → number
132-
* - json, jsonb → json → JSONValue
133-
* - enum → enumeration → string
134-
* - T[] (arrays) → json<U[]> where U is schema.ts type for T → V[] where V is JS/TS type for T
135-
* Note: Arrays are represented as Zero json columns; element types flow through `$type`.
136-
*/
137-
138118
/**
139119
* Maps Zero schema types to their corresponding TypeScript types.
140120
*/

0 commit comments

Comments
 (0)