Defined default enum separators

This commit is contained in:
Kir_Antipov 2023-01-21 09:15:34 +00:00
parent a2288eeefa
commit 8e382c9ed5

View file

@ -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];