From bcb8315df6cdf2c2b5227037bf3e53df66be2742 Mon Sep 17 00:00:00 2001 From: Thomas Park <53840199+tpmsr@users.noreply.github.com> Date: Thu, 17 Oct 2019 13:25:45 -0700 Subject: [PATCH] fix: update constant names for enum values (#213) * fix: add constant for max enum value length * refactor: rename constants * refactor: remove old value --- src/Entity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity.ts b/src/Entity.ts index b8e8c34..ea51ccc 100644 --- a/src/Entity.ts +++ b/src/Entity.ts @@ -56,8 +56,8 @@ export function isPrebuilt(entity: EntityBase) { return (entity.entityName === `builtin-${entity.entityType.toLowerCase()}`) } -export const MAX_ENUM_VALUES = 5 -export const MAX_ENUM_VALUE_LENGTH = 10 +export const MAX_ENUM_VALUE_COUNT = 5 +export const MAX_ENUM_VALUE_NAME_LENGTH = 10 export interface EnumValue { enumValueId?: string