mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 05:19:29 +02:00
Fix merge issue
This commit is contained in:
parent
15d3863842
commit
76606ae33a
@ -1,5 +1,6 @@
|
|||||||
import { getStatKey, type Stat } from "#enums/stat";
|
import { getStatKey, type Stat } from "#enums/stat";
|
||||||
import type { EnumOrObject, EnumValues, NormalEnum, TSNumericEnum } from "#types/enum-types";
|
import type { EnumOrObject, NormalEnum, TSNumericEnum } from "#types/enum-types";
|
||||||
|
import type { ObjectValues } from "#types/type-helpers";
|
||||||
import { enumValueToKey } from "#utils/enums";
|
import { enumValueToKey } from "#utils/enums";
|
||||||
import { toTitleCase } from "#utils/strings";
|
import { toTitleCase } from "#utils/strings";
|
||||||
import type { MatcherState } from "@vitest/expect";
|
import type { MatcherState } from "@vitest/expect";
|
||||||
@ -44,7 +45,7 @@ interface getEnumStrOptions {
|
|||||||
*/
|
*/
|
||||||
export function getEnumStr<E extends EnumOrObject>(
|
export function getEnumStr<E extends EnumOrObject>(
|
||||||
obj: E,
|
obj: E,
|
||||||
val: EnumValues<E>,
|
val: ObjectValues<E>,
|
||||||
{ casing = "Preserve", prefix = "", suffix = "" }: getEnumStrOptions = {},
|
{ casing = "Preserve", prefix = "", suffix = "" }: getEnumStrOptions = {},
|
||||||
): string {
|
): string {
|
||||||
let casingFunc: ((s: string) => string) | undefined;
|
let casingFunc: ((s: string) => string) | undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user