Files
EpicNext-Cms/src/lib/services/currency.ts
T
openhands 2249303dbd
CI / check (push) Successful in 30s
CI / tests-imaging-browsers (push) Successful in 1m31s
CI / tests-unit (push) Successful in 1m45s
CI / tests-integration (push) Successful in 1m49s
CI / tests-quality (push) Successful in 47s
CI / tests-ui (push) Successful in 4m24s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 3m39s
chore(lint): remove dead eslint-disable directives
The project lints with Biome only, so none of these 78 directives across 57
files ever suppressed anything. Directives that carried the rationale for a
flagged dynamic index access keep that rationale as a plain comment.
2026-10-18 14:50:51 +02:00

20 lines
475 B
TypeScript

// Numeric values are dictated by the Arcturus emulator and MUST NOT change.
export enum CurrencyType {
Credits = -1,
Duckets = 0,
Diamonds = 5,
Points = 101,
}
const LABELS: Record<CurrencyType, string> = {
[CurrencyType.Credits]: "Credits",
[CurrencyType.Duckets]: "Duckets",
[CurrencyType.Diamonds]: "Diamonds",
[CurrencyType.Points]: "Points",
};
export function currencyLabel(type: CurrencyType): string {
// type is CurrencyType enum
return LABELS[type];
}