From e9346263428243a09edfc42d8a00d6df24f8ef94 Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Thu, 16 May 2024 15:17:25 +0200 Subject: [PATCH] fix: TS definition was wrong (still the default) --- regression-exponential.d.ts | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/regression-exponential.d.ts b/regression-exponential.d.ts index 3eb8af0..cea5062 100644 --- a/regression-exponential.d.ts +++ b/regression-exponential.d.ts @@ -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;