@xmobitea/gn-typescript-client
Version:
GearN Typescript Client SDK by XmobiTea (Pro)
7 lines (6 loc) • 329 B
TypeScript
export declare class EnumUtility {
private static enumKeyCache;
private static getEnumKeys;
static parse<T extends Record<string, number | string>>(enumType: T, value: string, ignoreCase?: boolean): T[keyof T];
static toString<T extends Record<string, number | string>>(enumType: T, value: T[keyof T]): string;
}