code refactor
This commit is contained in:
@@ -37,7 +37,7 @@ import {
|
||||
|
||||
interface DesktopTrendsChartProps<T extends Year1BasedMonth> extends CommonTrendsChartProps<T> {
|
||||
skeleton?: boolean;
|
||||
type: number;
|
||||
type?: number;
|
||||
showValue?: boolean;
|
||||
showTotalAmountInTooltip?: boolean;
|
||||
}
|
||||
|
||||
@@ -706,7 +706,7 @@ export interface TransactionCategoricalAnalysisData {
|
||||
readonly items: TransactionCategoricalAnalysisDataItem[];
|
||||
}
|
||||
|
||||
export interface TransactionCategoricalAnalysisDataItem extends TransactionStatisticDataItemBase {
|
||||
export interface TransactionCategoricalAnalysisDataItem extends Record<string, unknown> , TransactionStatisticDataItemBase {
|
||||
readonly percent: number;
|
||||
}
|
||||
|
||||
@@ -714,11 +714,11 @@ export interface TransactionTrendsAnalysisData {
|
||||
readonly items: TransactionTrendsAnalysisDataItem[];
|
||||
}
|
||||
|
||||
export interface TransactionTrendsAnalysisDataItem extends TransactionStatisticDataItemBase {
|
||||
export interface TransactionTrendsAnalysisDataItem extends Record<string, unknown>, TransactionStatisticDataItemBase {
|
||||
readonly items: TransactionTrendsAnalysisDataAmount[];
|
||||
}
|
||||
|
||||
export interface TransactionTrendsAnalysisDataAmount extends Year1BasedMonth {
|
||||
export interface TransactionTrendsAnalysisDataAmount extends Record<string, unknown>, Year1BasedMonth {
|
||||
readonly year: number;
|
||||
readonly month1base: number;
|
||||
readonly totalAmount: number;
|
||||
|
||||
@@ -86,7 +86,7 @@ interface WritableTransactionCategoricalAnalysisData {
|
||||
items: Record<string, WritableTransactionCategoricalAnalysisDataItem>;
|
||||
}
|
||||
|
||||
interface WritableTransactionCategoricalAnalysisDataItem {
|
||||
interface WritableTransactionCategoricalAnalysisDataItem extends Record<string, unknown> {
|
||||
name: string;
|
||||
type: TransactionStatisticDataItemType;
|
||||
id: string;
|
||||
@@ -98,7 +98,7 @@ interface WritableTransactionCategoricalAnalysisDataItem {
|
||||
percent?: number;
|
||||
}
|
||||
|
||||
interface WritableTransactionTrendsAnalysisDataItem {
|
||||
interface WritableTransactionTrendsAnalysisDataItem extends Record<string, unknown> {
|
||||
name: string;
|
||||
type: TransactionStatisticDataItemType;
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user