Open mjkangquarry opened 1 year ago
"Expected 0 arguments, but got 2." error occur when I try to run a sample in TSX as follows.
const requestsSeries = new TimeSeries({ name: 'requests', columns: ['time', 'requests'], points: requests.map(([d, value]) => [Index.getIndexString('1h', new Date(d)), value]),, })
I found current definition is different with real function parameter.
Current wrong definition: pond/src/index.d.ts
static getIndexString(): string;
Real function parameter: pond/src/pond/lib/index.js
static getIndexString(win, date) {
Please revise it as follows:
static getIndexString(win: string, date: Date): string;
"Expected 0 arguments, but got 2." error occur when I try to run a sample in TSX as follows.
I found current definition is different with real function parameter.
Current wrong definition: pond/src/index.d.ts
Real function parameter: pond/src/pond/lib/index.js
Please revise it as follows: