From 54e1fbefec58def28f632ca29082ba9addc03f4c Mon Sep 17 00:00:00 2001 From: MattMo Date: Fri, 14 Apr 2023 06:44:30 -0700 Subject: [PATCH] Removed enum extends since it's not super helpful. Bumped package version to 1.5.2. --- Rest.Net/Rest.Net.csproj | 2 +- Rest.Net/RestJavascriptClientGenerator.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Rest.Net/Rest.Net.csproj b/Rest.Net/Rest.Net.csproj index 16512bb..c84b907 100644 --- a/Rest.Net/Rest.Net.csproj +++ b/Rest.Net/Rest.Net.csproj @@ -17,7 +17,7 @@ MontoyaTech.Rest.Net MontoyaTech.Rest.Net True - 1.5.1 + 1.5.2 Logo_Symbol_Black_Outline.png diff --git a/Rest.Net/RestJavascriptClientGenerator.cs b/Rest.Net/RestJavascriptClientGenerator.cs index 8edcedb..961c396 100644 --- a/Rest.Net/RestJavascriptClientGenerator.cs +++ b/Rest.Net/RestJavascriptClientGenerator.cs @@ -237,8 +237,6 @@ namespace MontoyaTech.Rest.Net if (!type.IsEnum && !(IsTypeDotNet(type.BaseType) && type.BaseType.Name == "Object")) writer.Write(" extends ").Write(this.GetTypeFullyResolvedName(type.BaseType)); - else if (type.IsEnum) - writer.Write(" extends Number"); writer.WriteLine(" {").Indent();