add: add utils from conver enums
Publish / Publish Job (push) Successful in 43s

This commit is contained in:
Дмитрий
2026-04-02 20:31:45 +03:00
parent 329711e499
commit ecf1704eb1
4 changed files with 10 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
export function convertEnum<T extends object>(
target: T,
value: string
): T[keyof T] {
return (target as any)[value]
}
+1
View File
@@ -0,0 +1 @@
export * from './conver-enum'