mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
feat: migrated from chart.js to google-charts
This commit is contained in:
21
lib/types.d.ts
vendored
21
lib/types.d.ts
vendored
@@ -1,4 +1,23 @@
|
||||
export interface Tab {
|
||||
title: string;
|
||||
id: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
interface Currency {
|
||||
id: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
interface Category {
|
||||
label: string;
|
||||
backgroundColor: string;
|
||||
}
|
||||
|
||||
export interface UserSpendData {
|
||||
category: Category;
|
||||
currency: Currency;
|
||||
date: Date;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export type PieCircleData = Array<[[string, number], { backgroundColor: string; label: string }]>;
|
||||
|
||||
Reference in New Issue
Block a user