From 484ef1f8bdacb56c2c85de2512e35ca4af4a3b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Pluta?= Date: Tue, 1 Apr 2025 13:53:16 +0200 Subject: [PATCH] Implement base types --- src/types/config.ts | 7 +++++++ src/types/transaction.ts | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/types/config.ts create mode 100644 src/types/transaction.ts diff --git a/src/types/config.ts b/src/types/config.ts new file mode 100644 index 0000000..d26de2e --- /dev/null +++ b/src/types/config.ts @@ -0,0 +1,7 @@ +export type ProfileConfig = { + config?: object; +}; + +export type ParserConfig = { + +}; \ No newline at end of file diff --git a/src/types/transaction.ts b/src/types/transaction.ts new file mode 100644 index 0000000..e7e8d38 --- /dev/null +++ b/src/types/transaction.ts @@ -0,0 +1,15 @@ +export type Transaction = { + id?: string; + account: string; + date: string; + amount?: number; + payee?: string; + payee_name?: string; + imported_payee?: string; + category_id?: string; + notes?: string; + imported_id?: string; + transfer_id?: string; + cleared?: boolean; + subtransactions?: Transaction[]; +}; \ No newline at end of file