reduced scope
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s

This commit is contained in:
BOTAlex 2025-11-10 02:56:18 +01:00
parent e3805fd221
commit 39ce1deae7
3 changed files with 34 additions and 30 deletions

View file

@ -20,3 +20,37 @@ export function DkkToCurrency(value: number, target: CurrencyType): number {
return value * CurrencyType.USD;
}
}
// import pb from "@ts/api/api";
// import type { ValueData } from "./ValueData";
//
// export class CurrencyConvert {
// valueData: ValueData | undefined = undefined;
//
// constructor() {}
//
// static async RetreiveCurrencyData(): Promise<ValueData> {
// const item = await pb.collection("misc").getFirstListItem(`ref="currency"`);
// return ShopItem.fromJSON(item);
// }
//
// // DKK: baller
// // target: ISO short thing. Fx. "EUR", "USD"
// // Returns: Target equilavent
// static async To(dkk: number, target: string): Promise<undefined | number> {
// return undefined;
// }
// }
//
//
//// iso: "USD", "EUR"
// value: What it is worth compared to 1 DKK
// interface DkkRelativeEqualivant {
// iso: string;
// value: number;
// }
//
// export interface ValueData {
// data: DkkRelativeEqualivant[];
// }
//