Updates
This commit is contained in:
@@ -42,7 +42,8 @@ export default function generateTypeDefinition({
|
||||
)
|
||||
.join(" | ");
|
||||
}
|
||||
if (schemaType.dataType?.match(/int/i)) {
|
||||
|
||||
if (schemaType.dataType?.match(/int|double|decimal/i)) {
|
||||
return "number";
|
||||
}
|
||||
|
||||
@@ -51,7 +52,7 @@ export default function generateTypeDefinition({
|
||||
}
|
||||
|
||||
if (schemaType.dataType?.match(/boolean/i)) {
|
||||
return "boolean";
|
||||
return "0 | 1";
|
||||
}
|
||||
|
||||
return "string";
|
||||
|
||||
Reference in New Issue
Block a user