zemlyansky / arima

ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting in the browser and Node.js

Home Page:https://www.npmjs.com/arima

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript types

y4nnick opened this issue · comments

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
}