From 8e382c9ed5f4d9aa8c58141cd10dd12b7959949f Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Sat, 21 Jan 2023 09:15:34 +0000 Subject: [PATCH] Defined default enum separators --- src/utils/enum/enum-separators.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/utils/enum/enum-separators.ts diff --git a/src/utils/enum/enum-separators.ts b/src/utils/enum/enum-separators.ts new file mode 100644 index 0000000..a86e8ae --- /dev/null +++ b/src/utils/enum/enum-separators.ts @@ -0,0 +1,9 @@ +/** + * An array of characters that can be used to separate enum values in a string. + */ +export const ENUM_SEPARATORS = [",", "|"] as const; + +/** + * The default separator used when converting an enum value to a string. + */ +export const DEFAULT_ENUM_SEPARATOR = ENUM_SEPARATORS[0];