Updates
This commit is contained in:
@@ -22,14 +22,13 @@ function generateTypeDefinition({ paradigm, table, query, typeDefName, allValues
|
||||
return schemaType.options
|
||||
.map((opt) => {
|
||||
var _a;
|
||||
return ((_a = schemaType.dataType) === null || _a === void 0 ? void 0 : _a.match(/int/i)) ||
|
||||
typeof opt == "number"
|
||||
return ((_a = schemaType.dataType) === null || _a === void 0 ? void 0 : _a.match(/int|double|decimal|float/i)) || typeof opt == "number"
|
||||
? `${opt}`
|
||||
: `"${opt}"`;
|
||||
})
|
||||
.join(" | ");
|
||||
}
|
||||
if ((_a = schemaType.dataType) === null || _a === void 0 ? void 0 : _a.match(/int|double|decimal/i)) {
|
||||
if ((_a = schemaType.dataType) === null || _a === void 0 ? void 0 : _a.match(/int|double|decimal|float/i)) {
|
||||
return "number";
|
||||
}
|
||||
if ((_b = schemaType.dataType) === null || _b === void 0 ? void 0 : _b.match(/text|varchar|timestamp/i)) {
|
||||
|
||||
Reference in New Issue
Block a user