File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -115,26 +115,6 @@ export const postgresTypeToZeroType = {
115115 */
116116export 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 */
You can’t perform that action at this time.
0 commit comments