Permalink
Browse files

fix enum logic in ts

  • Loading branch information...
mythz committed Feb 4, 2019
1 parent 12a0c33 commit 5563e984f2f1313dbf7c1fffaefbb7fdda96d03e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ServiceStack/NativeTypes/TypeScript/TypeScriptGenerator.cs
@@ -261,7 +261,7 @@ public string GetCode(MetadataTypes metadata, IRequest request, INativeTypesMeta
if (type.IsEnum.GetValueOrDefault())
{
var isIntEnum = type.IsEnumInt.GetValueOrDefault() || type.EnumNames.IsEmpty();
if (isIntEnum || (!UseUnionTypeEnums && !Config.ExportAsTypes))
if ((isIntEnum || !UseUnionTypeEnums) && Config.ExportAsTypes)
{
var typeDeclaration = !Config.ExportAsTypes
? "enum"

0 comments on commit 5563e98

Please sign in to comment.