Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
illetid committed Sep 4, 2024
1 parent 7a26d67 commit 01b3e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/plugins/pane-primitive-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { IPanePrimitive } from '../api/ipane-primitive-api';

import { DeepPartial } from '../helpers/strict-type-checks';

import { IPrimitiveWrapper } from './primitive-wrapper-base';

/**
* Interface for a primitive with options.
*/
Expand Down Expand Up @@ -34,7 +32,7 @@ export interface IPanePrimitiveWrapper<T, Options> {
applyOptions?: (options: DeepPartial<Options>) => void;
}

export class PanePrimitiveWrapper<T, Options = unknown, TPrimitive extends IPanePrimitiveWithOptions<T, Options> = IPanePrimitive<T>> implements IPrimitiveWrapper<T, Options> {
export class PanePrimitiveWrapper<T, Options = unknown, TPrimitive extends IPanePrimitiveWithOptions<T, Options> = IPanePrimitive<T>> implements IPanePrimitiveWrapper<T, Options> {
private _primitive: TPrimitive;
private _pane: IPaneApi<T>;

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/series-markers/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SeriesMarker } from './types';
/**
* Interface for a series markers plugin
*/
export interface ISeriesMarkersPluginApi<HorzScaleItem> {
export interface ISeriesMarkersPluginApi<HorzScaleItem> extends ISeriesPrimitiveWrapper<HorzScaleItem> {
/**
* Set markers to the series.
* @param markers - An array of markers to be displayed on the series.
Expand Down

0 comments on commit 01b3e4f

Please sign in to comment.