sql-typechecker 0.0.14 → 0.0.15
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/out/cli.js +11 -1
- package/out/cli.js.map +2 -2
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -243175,7 +243175,17 @@ function showTypeAsTypescriptType(t) {
|
|
|
243175
243175
|
} else if (t.kind === "nullable") {
|
|
243176
243176
|
return showTypeAsTypescriptType(t.typevar) + " | null";
|
|
243177
243177
|
} else if (t.kind === "scalar") {
|
|
243178
|
-
if ([
|
|
243178
|
+
if ([
|
|
243179
|
+
"numeric",
|
|
243180
|
+
"bigint",
|
|
243181
|
+
"smallint",
|
|
243182
|
+
"integer",
|
|
243183
|
+
"real",
|
|
243184
|
+
"double",
|
|
243185
|
+
"float8",
|
|
243186
|
+
"float4",
|
|
243187
|
+
"float2"
|
|
243188
|
+
].includes(t.name.name)) {
|
|
243179
243189
|
return "number";
|
|
243180
243190
|
} else if (["text", "name", "char", "character", "varchar", "nvarchar"].includes(t.name.name)) {
|
|
243181
243191
|
return "string";
|