arima icon indicating copy to clipboard operation
arima copied to clipboard

Typescript types

Open y4nnick opened this issue 5 years ago • 0 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
}

y4nnick avatar Jan 02 '21 14:01 y4nnick