Browse Source

fix(common): create NullableLineChartItem interface

pull/7050/head
KenTandrian 3 months ago
parent
commit
aef24402de
  1. 6
      libs/common/src/lib/interfaces/index.ts
  2. 5
      libs/common/src/lib/interfaces/line-chart-item.interface.ts

6
libs/common/src/lib/interfaces/index.ts

@ -25,7 +25,10 @@ import type { HoldingWithParents } from './holding-with-parents.interface';
import type { Holding } from './holding.interface';
import type { InfoItem } from './info-item.interface';
import type { InvestmentItem } from './investment-item.interface';
import type { LineChartItem } from './line-chart-item.interface';
import type {
LineChartItem,
NullableLineChartItem
} from './line-chart-item.interface';
import type { LookupItem } from './lookup-item.interface';
import type { MarketData } from './market-data.interface';
import type { PortfolioChart } from './portfolio-chart.interface';
@ -158,6 +161,7 @@ export {
MarketData,
MarketDataDetailsResponse,
MarketDataOfMarketsResponse,
NullableLineChartItem,
OAuthResponse,
PlatformsResponse,
PortfolioChart,

5
libs/common/src/lib/interfaces/line-chart-item.interface.ts

@ -2,3 +2,8 @@ export interface LineChartItem {
date: string;
value: number;
}
export interface NullableLineChartItem {
date: string;
value: number | null;
}

Loading…
Cancel
Save