Skip to content

Commit

Permalink
fix: TS definition was wrong (still the default)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed May 16, 2024
1 parent 00f2e30 commit e934626
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions regression-exponential.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import BaseRegression from 'ml-regression-base';
import { BaseRegression } from 'ml-regression-base';

declare namespace ExponentialRegression {
export interface ExponentialRegressionModel {
name: 'exponentialRegression';
A: number;
B: number;
}
export interface ExponentialRegressionModel {
name: 'exponentialRegression';
A: number;
B: number;
}

declare class ExponentialRegression extends BaseRegression {
export declare class ExponentialRegression extends BaseRegression {
constructor(x: number[], y: number[]);

static load(model: ExponentialRegression.ExponentialRegressionModel): ExponentialRegression;
static load(model: ExponentialRegressionModel): ExponentialRegression;

toJSON(): ExponentialRegression.ExponentialRegressionModel;
toJSON(): ExponentialRegressionModel;
}

export = ExponentialRegression;

0 comments on commit e934626

Please sign in to comment.