Skip to content

Commit

Permalink
update: Transaction interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbanesiDev committed Aug 24, 2024
1 parent 316465d commit fd202d9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/domain/entities/Transaction.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { IconProp } from "@fortawesome/fontawesome-svg-core";
import { Dayjs } from "dayjs";

export interface Transaction {
id: string;
category: Category;
date: Dayjs;
type: "income" | "expense";
description?: string;
category: Category;
amount: number;
date: string;
description?: string;
}

export interface Category {
id: number;
name: string;
icon: string;
label: string;
icon: IconProp;
}

0 comments on commit fd202d9

Please sign in to comment.