diff --git a/src/drivers/PostgresDriver.ts b/src/drivers/PostgresDriver.ts index 2348b32..ef37425 100644 --- a/src/drivers/PostgresDriver.ts +++ b/src/drivers/PostgresDriver.ts @@ -152,7 +152,7 @@ export class PostgresDriver extends AbstractDriver { colInfo.sql_type = "time with time zone" break; case "point": - colInfo.ts_type = "string|Object" + colInfo.ts_type = "string | Object" colInfo.sql_type = "point" break; case "line": @@ -160,11 +160,11 @@ export class PostgresDriver extends AbstractDriver { colInfo.sql_type = "line" break; case "lseg": - colInfo.ts_type = "string|string[]" + colInfo.ts_type = "string | string[]" colInfo.sql_type = "lseg" break; case "box": - colInfo.ts_type = "string|Object" + colInfo.ts_type = "string | Object" colInfo.sql_type = "box" break; case "path": @@ -176,7 +176,7 @@ export class PostgresDriver extends AbstractDriver { colInfo.sql_type = "polygon" break; case "circle": - colInfo.ts_type = "string|Object" + colInfo.ts_type = "string | Object" colInfo.sql_type = "circle" break; case "cidr": diff --git a/src/models/ColumnInfo.ts b/src/models/ColumnInfo.ts index fa1efcc..3c241c2 100644 --- a/src/models/ColumnInfo.ts +++ b/src/models/ColumnInfo.ts @@ -7,7 +7,7 @@ export class ColumnInfo { name: string = ''; default: string | null = null; is_nullable: boolean = false; - ts_type: 'number' | 'string' | 'boolean' | 'Date' | 'Buffer' | 'Object' | 'string|Object' | 'string|string[]' | 'any'; + ts_type: 'number' | 'string' | 'boolean' | 'Date' | 'Buffer' | 'Object' | 'string | Object' | 'string | string[]' | 'any'; sql_type: ColumnType; char_max_lenght: number | null = null; isPrimary: boolean = false;