mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 18:24:26 +08:00
code refactor
This commit is contained in:
@@ -37,7 +37,7 @@ import {
|
|||||||
|
|
||||||
interface DesktopTrendsChartProps<T extends Year1BasedMonth> extends CommonTrendsChartProps<T> {
|
interface DesktopTrendsChartProps<T extends Year1BasedMonth> extends CommonTrendsChartProps<T> {
|
||||||
skeleton?: boolean;
|
skeleton?: boolean;
|
||||||
type: number;
|
type?: number;
|
||||||
showValue?: boolean;
|
showValue?: boolean;
|
||||||
showTotalAmountInTooltip?: boolean;
|
showTotalAmountInTooltip?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -706,7 +706,7 @@ export interface TransactionCategoricalAnalysisData {
|
|||||||
readonly items: TransactionCategoricalAnalysisDataItem[];
|
readonly items: TransactionCategoricalAnalysisDataItem[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TransactionCategoricalAnalysisDataItem extends TransactionStatisticDataItemBase {
|
export interface TransactionCategoricalAnalysisDataItem extends Record<string, unknown> , TransactionStatisticDataItemBase {
|
||||||
readonly percent: number;
|
readonly percent: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -714,11 +714,11 @@ export interface TransactionTrendsAnalysisData {
|
|||||||
readonly items: TransactionTrendsAnalysisDataItem[];
|
readonly items: TransactionTrendsAnalysisDataItem[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TransactionTrendsAnalysisDataItem extends TransactionStatisticDataItemBase {
|
export interface TransactionTrendsAnalysisDataItem extends Record<string, unknown>, TransactionStatisticDataItemBase {
|
||||||
readonly items: TransactionTrendsAnalysisDataAmount[];
|
readonly items: TransactionTrendsAnalysisDataAmount[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TransactionTrendsAnalysisDataAmount extends Year1BasedMonth {
|
export interface TransactionTrendsAnalysisDataAmount extends Record<string, unknown>, Year1BasedMonth {
|
||||||
readonly year: number;
|
readonly year: number;
|
||||||
readonly month1base: number;
|
readonly month1base: number;
|
||||||
readonly totalAmount: number;
|
readonly totalAmount: number;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ interface WritableTransactionCategoricalAnalysisData {
|
|||||||
items: Record<string, WritableTransactionCategoricalAnalysisDataItem>;
|
items: Record<string, WritableTransactionCategoricalAnalysisDataItem>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WritableTransactionCategoricalAnalysisDataItem {
|
interface WritableTransactionCategoricalAnalysisDataItem extends Record<string, unknown> {
|
||||||
name: string;
|
name: string;
|
||||||
type: TransactionStatisticDataItemType;
|
type: TransactionStatisticDataItemType;
|
||||||
id: string;
|
id: string;
|
||||||
@@ -98,7 +98,7 @@ interface WritableTransactionCategoricalAnalysisDataItem {
|
|||||||
percent?: number;
|
percent?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WritableTransactionTrendsAnalysisDataItem {
|
interface WritableTransactionTrendsAnalysisDataItem extends Record<string, unknown> {
|
||||||
name: string;
|
name: string;
|
||||||
type: TransactionStatisticDataItemType;
|
type: TransactionStatisticDataItemType;
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user