mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 00:11:02 -05:00
Defined default enum separators
This commit is contained in:
parent
a2288eeefa
commit
8e382c9ed5
1 changed files with 9 additions and 0 deletions
9
src/utils/enum/enum-separators.ts
Normal file
9
src/utils/enum/enum-separators.ts
Normal 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];
|
Loading…
Reference in a new issue