Skip to content

Commit

Permalink
fix: correctly type 2D data
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Mar 26, 2020
1 parent 9b5019b commit 8102abc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chromatography.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export abstract class ChromatogramSeries<DataType> {
}

export class ChromatogramSeries1D extends ChromatogramSeries<number[]> {}
export class ChromatogramSeries2D extends ChromatogramSeries<number[][]> {}
export class ChromatogramSeries2D extends ChromatogramSeries<number[][][]> {}

export type ChromatogramSeriesData = number[] | number[][];
export type ChromatogramSeriesData = number[] | number[][][];

export interface ChromatogramRange {
from: number;
Expand Down Expand Up @@ -296,7 +296,7 @@ export class Chromatogram {
* Find the series from its name.
* @param seriesName - Name of the series.
*/
getSeries(seriesName: string): ChromatogramSeries<number[] | number[][]>;
getSeries(seriesName: string): ChromatogramSeries<number[] | number[][][]>;

/**
* Find the series from its name.
Expand Down

0 comments on commit 8102abc

Please sign in to comment.