[backend]
name = "typescript-postgres"
language = "typescript"
file_extension = "ts"
engine = "postgresql"
description = "TypeScript code generation targeting postgres.js"
[types.scalars]
bool = "boolean"
int16 = "number"
int32 = "number"
int64 = "number"
float32 = "number"
float64 = "number"
string = "string"
bytes = "Buffer"
uuid = "string"
decimal = "string"
date = "string"
time = "string"
time_tz = "string"
datetime = "Date"
datetime_tz = "Date"
interval = "string"
json = "Record<string, unknown>"
json_array = "Record<string, unknown>[]"
inet = "string"
[types.containers]
array = "Array<{T}>"
nullable = "{T} | null"
range = "string"
json_typed = "{T}"
json_nested = "{T}"
[naming]
struct_case = "PascalCase"
fn_case = "camelCase"
enum_variant_case = "PascalCase"
row_suffix = "Row"
reserved_bindings = [
"arguments",
"await",
"break",
"case",
"catch",
"class",
"const",
"continue",
"debugger",
"default",
"delete",
"do",
"else",
"enum",
"eval",
"export",
"extends",
"false",
"finally",
"for",
"function",
"if",
"implements",
"import",
"in",
"instanceof",
"interface",
"let",
"new",
"null",
"package",
"private",
"protected",
"public",
"return",
"static",
"super",
"switch",
"this",
"throw",
"true",
"try",
"typeof",
"var",
"void",
"while",
"with",
"yield",
]
[imports.rules]