Improve heikinAshi typing

This commit is contained in:
Matthias 2023-05-04 07:20:51 +02:00
parent d0ad10391e
commit 77952ec2c9

View File

@ -1,4 +1,4 @@
export default function heikinAshiDataset(columns: string[], data: Array<number[]>) {
export function heikinAshiDataset(columns: string[], data: Array<number[]>): number[][] {
const openIdx = columns.indexOf('open');
const closeIdx = columns.indexOf('close');
const highIdx = columns.indexOf('high');
@ -26,3 +26,5 @@ export default function heikinAshiDataset(columns: string[], data: Array<number[
return candle;
});
}
export default heikinAshiDataset;