zemlyansky / arima

ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting in the browser and Node.js
https://www.npmjs.com/arima
76 stars 18 forks source link

Typescript types #6

Open y4nnick opened 3 years ago

y4nnick commented 3 years ago

Hi, thanks for the gread lib!

Do u plan to add typescript types?

I allready created a minimal index.d.ts to satisify my local compiler. But it is by far not complete.

declare class ArimaClass {
    predict(steps: number, exog: Array<Array<number>>): Array<Array<number>>
    fit(values: Array<number>, exog: Array<Array<number>>): ArimaClass
}

type ArimaConstructor = new (args: any) => ArimaClass
declare const arimaConstructorConst: ArimaConstructor

declare module 'arima' {
    export = arimaConstructorConst
}