This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export function convertEnum<T extends object>(
|
||||
target: T,
|
||||
value: string
|
||||
): T[keyof T] {
|
||||
return (target as any)[value]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from './conver-enum'
|
||||
Reference in New Issue
Block a user