From 5b493c21a9b55162e445ec328dba7c471013df22 Mon Sep 17 00:00:00 2001 From: Tyler Madsen <38698978+tylerjamesmadsen@users.noreply.github.com> Date: Mon, 11 Mar 2019 13:25:04 -0600 Subject: [PATCH] Update TypeScriptCodeWriter.cs Changed GetTypeName to return "boolean" instead of "bool" (javascript/typescript uses the full "boolean" instead of the shorter "bool") in TypeScriptCodeWriter.cs. --- .../CodeWriters/TypeScriptCodeWriter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JsonCSharpClassGeneratorLib/CodeWriters/TypeScriptCodeWriter.cs b/JsonCSharpClassGeneratorLib/CodeWriters/TypeScriptCodeWriter.cs index 166a7b3..e063cf7 100644 --- a/JsonCSharpClassGeneratorLib/CodeWriters/TypeScriptCodeWriter.cs +++ b/JsonCSharpClassGeneratorLib/CodeWriters/TypeScriptCodeWriter.cs @@ -24,7 +24,7 @@ public string GetTypeName(JsonType type, IJsonClassGeneratorConfig config) { case JsonTypeEnum.Anything: return "any"; case JsonTypeEnum.String: return "string"; - case JsonTypeEnum.Boolean: return "bool"; + case JsonTypeEnum.Boolean: return "boolean"; case JsonTypeEnum.Integer: case JsonTypeEnum.Long: case JsonTypeEnum.Float: return "number"; @@ -32,7 +32,7 @@ public string GetTypeName(JsonType type, IJsonClassGeneratorConfig config) case JsonTypeEnum.NullableInteger: case JsonTypeEnum.NullableLong: case JsonTypeEnum.NullableFloat: return "number"; - case JsonTypeEnum.NullableBoolean: return "bool"; + case JsonTypeEnum.NullableBoolean: return "boolean"; case JsonTypeEnum.NullableDate: return "Date"; case JsonTypeEnum.Object: return type.AssignedName; case JsonTypeEnum.Array: return GetTypeName(type.InternalType, config) + "[]";