diff --git a/package.json b/package.json index 7d40c1d..61a7942 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smallstack-cli", - "version": "0.4.10", + "version": "0.4.11", "description": "Command Line Interface for Smallstack Projects", "author": { "email": "max@smallstack.io", diff --git a/src/functions/generateSourcesFunctions.js b/src/functions/generateSourcesFunctions.js index c187665..d9b426c 100644 --- a/src/functions/generateSourcesFunctions.js +++ b/src/functions/generateSourcesFunctions.js @@ -254,13 +254,13 @@ functions.getChecksForParameters = function getChecksForParameters(array, others if (schemaTypeFound) type = "smallstack.schemas[\"" + schemaTypeFound + "\"]"; else - type = functions.getSchemaType(split[1]); + type = functions.getTypescriptType(split[1]); } else { name = array[i]; - type = "String"; + type = "string"; } - out += "\t\tUtils.check(params." + name + ", " + type + ", \"" + name + "\""; + out += "\t\tUtils.check(params." + name + ", \"" + type + "\", \"" + name + "\""; if (callback) out += ", callback"; out += ");\n";