Skip to content

Commit

Permalink
add a default value for ISeriesPrimitives generics
Browse files Browse the repository at this point in the history
  • Loading branch information
SlicedSilver committed Aug 17, 2023
1 parent a74b553 commit 76604b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/iseries-primitive-api.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Time } from '../model/horz-scale-behavior-time/types';
import { ISeriesPrimitiveBase } from '../model/iseries-primitive';
import { SeriesOptionsMap, SeriesType } from '../model/series-options';

Expand All @@ -9,7 +10,7 @@ import { ISeriesApi } from './iseries-api';
* a refresh of the chart.
*/
export interface SeriesAttachedParameter<
HorzScaleItem,
HorzScaleItem = Time,
TSeriesType extends SeriesType = keyof SeriesOptionsMap
> {
/**
Expand All @@ -29,6 +30,6 @@ export interface SeriesAttachedParameter<
/**
* Interface for series primitives. It must be implemented to add some external graphics to series.
*/
export type ISeriesPrimitive<HorzScaleItem> = ISeriesPrimitiveBase<
export type ISeriesPrimitive<HorzScaleItem = Time> = ISeriesPrimitiveBase<
SeriesAttachedParameter<HorzScaleItem, SeriesType>
>;

0 comments on commit 76604b4

Please sign in to comment.