From a55c7fb1395f809a714525d1a6947270b4025d6a Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 20 Nov 2024 21:00:48 +0200 Subject: [PATCH] Add Currency interface to entities --- src/lib/entities.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/entities.ts b/src/lib/entities.ts index 46bf289..5c17b3a 100644 --- a/src/lib/entities.ts +++ b/src/lib/entities.ts @@ -103,6 +103,13 @@ export interface Metric { short: string; } +export interface Currency { + id: number; + name: string; + iso_name: string; + symbol: string; +} + export const EntityTypes = { card: "Card", type: "Type", @@ -112,6 +119,7 @@ export const EntityTypes = { transfer: "Transfer", payment: "Payment", metric: "Metric", + currency: "Currency", } as const; export type EntityName = keyof typeof EntityTypes; @@ -124,6 +132,7 @@ export type EntityType = T extends "transfer" ? Transfer : T extends "payment" ? Payment : T extends "metric" ? Metric : + T extends "currency" ? Currency : never; //