My project currently utilizes TypeScript version 3.9.7 and I'm encountering an issue with the following code snippet. This code works perfectly fine in TypeScript version 4.2.3.
export namespace Abcd {
export type AbcdOneParams = [xAxis: number, yAxis: number];
}
However, when using version 3.9.7, it throws an error saying ',' expected
. IntelliJ highlights the error as TS1005: ',' expected
.
code@TS Playground 4.2.3
code@TS Playground 3.9.7
I'm looking for suggestions on how to modify the code to make it compatible with version 3.9.7.